실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:5:3: error: ‘ios’ has not been declared 5 | ios::sync_with_stdio(false); | ^~~ Main.cpp:6:3: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’? 6 | cin.tie(NULL); cout.tie(NULL); | ^~~ | 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:6:18: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’? 6 | cin.tie(NULL); cout.tie(NULL); | ^~~~ | 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:8:3: error: ‘string’ was not declared in this scope 8 | string x; cin >> x; | ^~~~~~ Main.cpp:8: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:8:20: error: ‘x’ was not declared in this scope 8 | string x; cin >> x; | ^ Main.cpp:14:11: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’? 14 | cout << endl; | ^~~~ | std::endl In file included from /usr/include/c++/11/iostream:39, from Main.cpp:1: /usr/include/c++/11/ostream:684:5: note: ‘std::endl’ declared here 684 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.