실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:9:3: error: ‘map’ was not declared in this scope 9 | map<int, int> Nmap; | ^~~ Main.cpp:3:1: note: ‘std::map’ is defined in header ‘<map>’; did you forget to ‘#include <map>’? 2 | #include <vector> +++ |+#include <map> 3 | using namespace std; Main.cpp:9:7: error: expected primary-expression before ‘int’ 9 | map<int, int> Nmap; | ^~~ Main.cpp:12:5: error: ‘Nmap’ was not declared in this scope 12 | Nmap.insert(tmp, 0); | ^~~~ Main.cpp:23:9: error: ‘Nmap’ was not declared in this scope 23 | if (Nmap.find(Mnum[j] != Nmap.end()) Nmap[Mnum[j]]++; | ^~~~ Main.cpp:23:24: error: ‘j’ was not declared in this scope 23 | if (Nmap.find(Mnum[j] != Nmap.end()) Nmap[Mnum[j]]++; | ^ Main.cpp:24:48: error: expected ‘)’ before ‘;’ token 24 | cout << Nmap.find(Mnum[j]) -> second << " "; | ^ | ) Main.cpp:23:8: note: to match this ‘(’ 23 | if (Nmap.find(Mnum[j] != Nmap.end()) Nmap[Mnum[j]]++; | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.