실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:4:11: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’? 4 | int n ; 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:6:3: error: ‘string’ was not declared in this scope 6 | string star = "*" | ^~~~~~ Main.cpp:6: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:7:19: error: ‘i’ was not declared in this scope 7 | for(int i = 1 ; i <= n ; i++ ){ | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.