실행 실패 (제출 코드 컴파일 에러)
{"stderr": "Main.cpp: In function \u2018int main()\u2019:\nMain.cpp:9:5: error: \u2018ios\u2019 has not been declared\n 9 | ios::sync_with_stdio(false);\n | ^~~\nMain.cpp:10:5: error: \u2018cin\u2019 was not declared in this scope\n 10 | cin.tie(nullptr);\n | ^~~\nMain.cpp:1:1: note: \u2018std::cin\u2019 is defined in header \u2018<iostream>\u2019; did you forget to \u2018#include <iostream>\u2019?\n +++ |+#include <iostream>\n 1 | \nMain.cpp:13:19: error: \u2018string\u2019 was not declared in this scope\n 13 | unordered_set<string> lis;\n | ^~~~~~\nMain.cpp:1:1: note: \u2018std::string\u2019 is defined in header \u2018<string>\u2019; did you forget to \u2018#include <string>\u2019?\n +++ |+#include <string>\n 1 | \nMain.cpp:13:5: error: \u2018unordered_set\u2019 was not declared in this scope\n 13 | unordered_set<string> lis;\n | ^~~~~~~~~~~~~\nMain.cpp:1:1: note: \u2018std::unordered_set\u2019 is defined in header \u2018<unordered_set>\u2019; did you forget to \u2018#include <unordered_set>\u2019?\n +++ |+#include <unordered_set>\n 1 | \nMain.cpp:13:27: error: \u2018lis\u2019 was not declared in this scope\n 13 | unordered_set<string> lis;\n | ^~~\nMain.cpp:14:5: error: \u2018vector\u2019 was not declared in this scope\n 14 | vector<string> res;\n | ^~~~~~\nMain.cpp:1:1: note: \u2018std::vector\u2019 is defined in header \u2018<vector>\u2019; did you forget to \u2018#include <vector>\u2019?\n +++ |+#include <vector>\n 1 | \nMain.cpp:14:20: error: \u2018res\u2019 was not declared in this scope\n 14 | vector<string> res;\n | ^~~\nMain.cpp:16:15: error: expected \u2018;\u2019 before \u2018name\u2019\n 16 | string name; cin>>name;\n | ^~~~~\n | ;\nMain.cpp:16:27: error: \u2018name\u2019 was not declared in this scope\n 16 | string name; cin>>name;\n | ^~~~\nMain.cpp:20:15: error: expected \u2018;\u2019 before \u2018name\u2019\n 20 | string name; cin>>name;\n | ^~~~~\n | ;\nMain.cpp:20:27: error: \u2018name\u2019 was not declared in this scope\n 20 | string name; cin>>name;\n | ^~~~\nMain.cpp:23:5: error: \u2018sort\u2019 was not declared in this scope; did you mean \u2018short\u2019?\n 23 | sort(res.begin(), res.end());\n | ^~~~\n | short\nMain.cpp:24:5: error: \u2018cout\u2019 was not declared in this scope\n 24 | cout<<(int)res.size()<<endl;\n | ^~~~\nMain.cpp:24:5: note: \u2018std::cout\u2019 is defined in header \u2018<iostream>\u2019; did you forget to \u2018#include <iostream>\u2019?\nMain.cpp:24:28: error: \u2018endl\u2019 was not declared in this scope\n 24 | cout<<(int)res.size()<<endl;\n | ^~~~\nMain.cpp:1:1: note: \u2018std::endl\u2019 is defined in header \u2018<ostream>\u2019; did you forget to \u2018#include <ostream>\u2019?\n +++ |+#include <ostream>\n 1 | \nMain.cpp:25:21: error: found \u2018:\u2019 in nested-name-specifier, expected \u2018::\u2019\n 25 | for(string &name:res) cout<<name<<endl;\n | ^\n | ::\nMain.cpp:25:17: error: \u2018name\u2019 has not been declared\n 25 | for(string &name:res) cout<<name<<endl;\n | ^~~~\nMain.cpp:26:5: error: expected primary-expression before \u2018return\u2019\n 26 | return 0;\n | ^~~~~~\nMain.cpp:25:44: error: expected \u2018;\u2019 before \u2018return\u2019\n 25 | for(string &name:res) cout<<name<<endl;\n | ^\n | ;\n 26 | return 0;\n | ~~~~~~ \nMain.cpp:26:5: error: expected primary-expression before \u2(...truncated, total 4373 characters)
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.