실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:28:53: error: use of an operand of type ‘bool’ in ‘operator++’ is forbidden in C++17 28 | map[arr[i] + arr[j]][arr[i]]++; | ^~ Main.cpp:29:53: error: use of an operand of type ‘bool’ in ‘operator++’ is forbidden in C++17 29 | map[arr[i] + arr[j]][arr[j]]++; | ^~ Main.cpp:38:56: warning: comparison of constant ‘1’ with boolean expression is always false [-Wbool-compare] 38 | if(map[arr[i]][arr[i]] > 1)ans++; Main.cpp:21:14: warning: unused variable ‘zero’ [-Wunused-variable] 21 | bool zero = false; | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.