실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp:5:1: error: expected unqualified-id before numeric constant\n 5 | 3include\n | ^~~~~~~~\nMain.cpp: In function \u2018int main()\u2019:\nMain.cpp:10:9: error: \u2018vector\u2019 was not declared in this scope\n 10 | vector <int> v(4);\n | ^~~~~~\nMain.cpp:10:9: note: suggested alternatives:\nIn file included from /usr/include/c++/11/vector:67,\n from Main.cpp:3:\n/usr/include/c++/11/bits/stl_vector.h:389:11: note: \u2018std::vector\u2019\n 389 | class vector : protected _Vector_base<_Tp, _Alloc>\n | ^~~~~~\nIn file included from Main.cpp:3:\n/usr/include/c++/11/vector:86:13: note: \u2018std::pmr::vector\u2019\n 86 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;\n | ^~~~~~\nMain.cpp:10:17: error: expected primary-expression before \u2018int\u2019\n 10 | vector <int> v(4);\n | ^~~\nMain.cpp:11:23: error: \u2018v\u2019 was not declared in this scope\n 11 | for (int& x : v) cin >> x;\n | ^\nMain.cpp:11:26: error: \u2018cin\u2019 was not declared in this scope; did you mean \u2018std::cin\u2019?\n 11 | for (int& x : v) cin >> x;\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:12:14: error: \u2018v\u2019 was not declared in this scope\n 12 | sort(v.begin(), v.end());\n | ^\nMain.cpp:12:9: error: \u2018sort\u2019 was not declared in this scope\n 12 | sort(v.begin(), v.end());\n | ^~~~\nMain.cpp:12:9: note: suggested alternatives:\nIn file included from /usr/include/c++/11/algorithm:74,\n from Main.cpp:4:\n/usr/include/c++/11/pstl/glue_algorithm_defs.h:296:1: note: \u2018std::sort\u2019\n 296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);\n | ^~~~\nIn file included from /usr/include/c++/11/algorithm:64,\n from Main.cpp:4:\n/usr/include/c++/11/bits/ranges_algo.h:1834:30: note: \u2018std::ranges::sort\u2019\n 1834 | inline constexpr __sort_fn sort{};\n | ^~~~\nMain.cpp:19:9: error: \u2018set\u2019 was not declared in this scope; did you mean \u2018tzset\u2019?\n 19 | set <int> check;\n | ^~~\n | tzset\nMain.cpp:19:14: error: expected primary-expression before \u2018int\u2019\n 19 | set <int> check;\n | ^~~\nMain.cpp:21:25: error: expected primary-expression before \u2018int\u2019\n 21 | vector <int> ch;\n | ^~~\nMain.cpp:24:25: error: \u2018ch\u2019 was not declared in this scope; did you mean \u2018ch1\u2019?\n 24 | ch.push_back(ch1 % 10);\n | ^~\n | ch1\nMain.cpp:27:22: error: \u2018ch\u2019 was not declared in this scope; did you mean \u2018ch1\u2019?\n 27 | sort(ch.begin(), ch.end());\n | ^~\n | ch1\nMain.cpp:34:17: error: \u2018check\u2019 was not declared in this scope\n 34 | check.insert(ch1);\n | ^~~~~\nMain.cpp:36:9: error: \u2018cout\u2019 was not declared in this scope; did you mean \u2018std::cout\u2019?\n 36 | cout << check.size();\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:36:17: error: \u2018check\u2019 was not declared in this scope\n 36 | cout (...truncated, total 4051 characters, 1 lines)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.