실행 실패 (제출 코드 컴파일 에러)
Main.cpp:4:7: error: expected nested-name-specifier before ‘namespcae’ 4 | using namespcae std; | ^~~~~~~~~ Main.cpp: In function ‘int main()’: Main.cpp:8:3: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’? 8 | cin >> n; | ^~~ | std::cin In file included from Main.cpp:1: /usr/include/c++/11/iostream:60:18: note: ‘std::cin’ declared here 60 | extern istream cin; /// Linked to standard input | ^~~ Main.cpp:10:3: error: ‘string’ was not declared in this scope 10 | string command; | ^~~~~~ Main.cpp:10:3: note: suggested alternatives: In file included from /usr/include/c++/11/iosfwd:39, from /usr/include/c++/11/ios:38, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/bits/stringfwd.h:79:33: note: ‘std::string’ 79 | typedef basic_string<char> string; | ^~~~~~ In file included from /usr/include/c++/11/bits/locale_classes.h:40, from /usr/include/c++/11/bits/ios_base.h:41, from /usr/include/c++/11/ios:42, from /usr/include/c++/11/ostream:38, from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/string:67:11: note: ‘std::pmr::string’ 67 | using string = basic_string<char>; | ^~~~~~ Main.cpp:12:3: error: ‘quere’ was not declared in this scope 12 | quere<int> q; | ^~~~~ Main.cpp:12:9: error: expected primary-expression before ‘int’ 12 | quere<int> q; | ^~~ Main.cpp:14:12: error: ‘command’ was not declared in this scope 14 | cin >> command; | ^~~~~~~ Main.cpp:20:9: error: ‘q’ was not declared in this scope 20 | q.push(tmp); | ^ Main.cpp:23:24: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’? 23 | if (q.empty()) cout << "-1\n"; | ^~~~ | std::cout In file included from Main.cpp:1: /usr/include/c++/11/iostream:61:18: note: ‘std::cout’ declared here 61 | extern ostream cout; /// Linked to standard output | ^~~~ Main.cpp:24:14: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’? 24 | else cout << q.front() << "\n"; | ^~~~ | std::cout In file included from Main.cpp:1: /usr/include/c++/11/iostream:61:18: note: ‘std::cout’ declared here 61 | extern ostream cout; /// Linked to standard output | ^~~~ Main.cpp:28:9: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’? 28 | cout << q.size() << "\n"; | ^~~~ | std::cout In file included from Main.cpp:1: /usr/include/c++/11/iostream:61:18: note: ‘std::cout’ declared here 61 | extern ostream cout; /// Linked to standard output | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.