실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp:4:16: error: expected identifier before \u2018;\u2019 token\n 4 | using namespace;\n | ^\nMain.cpp: In function \u2018int main()\u2019:\nMain.cpp:7:10: error: \u2018cin\u2019 was not declared in this scope; did you mean \u2018std::cin\u2019?\n 7 | int t; cin >> t;\n | ^~~\n | std::cin\nIn file included from Main.cpp:1:\n/usr/include/c++/11/iostream:60:18: note: \u2018std::cin\u2019 declared here\n 60 | extern istream cin; /// Linked to standard input\n | ^~~\nMain.cpp:8:3: error: \u2018set\u2019 was not declared in this scope\n 8 | set<int>s;\n | ^~~\nMain.cpp:8:3: note: suggested alternatives:\nIn file included from /usr/include/c++/11/set:61,\n from Main.cpp:2:\n/usr/include/c++/11/bits/stl_set.h:94:11: note: \u2018std::set\u2019\n 94 | class set\n | ^~~\nIn file included from Main.cpp:2:\n/usr/include/c++/11/set:78:13: note: \u2018std::pmr::set\u2019\n 78 | using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>;\n | ^~~\nMain.cpp:8:7: error: expected primary-expression before \u2018int\u2019\n 8 | set<int>s;\n | ^~~\nMain.cpp:10:5: error: \u2018string\u2019 was not declared in this scope\n 10 | string want ; cin >> want;\n | ^~~~~~\nMain.cpp:10:5: note: suggested alternatives:\nIn file included from /usr/include/c++/11/iosfwd:39,\n from /usr/include/c++/11/ios:38,\n from /usr/include/c++/11/ostream:38,\n from /usr/include/c++/11/iostream:39,\n from Main.cpp:1:\n/usr/include/c++/11/bits/stringfwd.h:79:33: note: \u2018std::string\u2019\n 79 | typedef basic_string<char> string;\n | ^~~~~~\nIn file included from /usr/include/c++/11/bits/locale_classes.h:40,\n from /usr/include/c++/11/bits/ios_base.h:41,\n from /usr/include/c++/11/ios:42,\n from /usr/include/c++/11/ostream:38,\n from /usr/include/c++/11/iostream:39,\n from Main.cpp:1:\n/usr/include/c++/11/string:67:11: note: \u2018std::pmr::string\u2019\n 67 | using string = basic_string<char>;\n | ^~~~~~\nMain.cpp:10:26: error: \u2018want\u2019 was not declared in this scope\n 10 | string want ; cin >> want;\n | ^~~~\nMain.cpp:13:7: error: \u2018s\u2019 was not declared in this scope\n 13 | s.insert(n);\n | ^\nMain.cpp:16:7: error: \u2018s\u2019 was not declared in this scope\n 16 | s.erase(s.find(n));\n | ^\nMain.cpp:19:10: error: \u2018s\u2019 was not declared in this scope\n 19 | if(s.count(n)){\n | ^\nMain.cpp:26:10: error: \u2018s\u2019 was not declared in this scope\n 26 | if(s.count(n)){\n | ^\nMain.cpp:27:9: error: \u2018cout\u2019 was not declared in this scope; did you mean \u2018std::cout\u2019?\n 27 | cout << 1 << '\\n';\n | ^~~~\n | std::cout\nIn file included from Main.cpp:1:\n/usr/include/c++/11/iostream:61:18: note: \u2018std::cout\u2019 declared here\n 61 | extern ostream cout; /// Linked to standard output\n | ^~~~\nMain.cpp:29:9: error: \u2018cout\u2019 was not declared in this scope; did you mean \u2018std::cout\u2019?\n 29 | cout << 0 << '\\n';\n | ^~~~\n | std::cout\nIn file included from Main.cpp:1:\n/usr/include/c++/11/iostream:61:18: note: \u2018std::cout\u2019 declared here\n 61 | extern ostream cout; /// Linked to standard output\n | ^~~~\nMain.cpp:33:9: error: \u2018s\u2019 was not declared in this scope\n 33 | s.insert(i);\n | ^\nMain.cpp:36:7: error: \u2018s\u2019 was not declared in this scope\n 36 | s.clear();\n | (...truncated, total 4006 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.