실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:13:31: error: expected ‘;’ before ‘pair’ 13 | dancing.insert("ChongChong") | ^ | ; 14 | 15 | pair<string, string> meeting; | ~~~~ Main.cpp:17:12: error: ‘meeting’ was not declared in this scope 17 | cin >> meeting.first >> meeting.second; | ^~~~~~~ Main.cpp:19:15: error: ‘class std::set<std::__cxx11::basic_string<char> >’ has no member named ‘incert’; did you mean ‘insert’? 19 | dancing.incert(meeting.first); | ^~~~~~ | insert Main.cpp:18:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 18 | if (dancing.find(meeting.first) != dancing.end() || dancing.find(meeting.second) != dancing.end()) | ^~ Main.cpp:20:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 20 | dancing.incert(meeting.second); | ^~~~~~~ Main.cpp:20:15: error: ‘class std::set<std::__cxx11::basic_string<char> >’ has no member named ‘incert’; did you mean ‘insert’? 20 | dancing.incert(meeting.second); | ^~~~~~ | insert
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.