실행 실패 (제출 코드 컴파일 에러)
Main.cpp:27:18: error: stray ‘#’ in program 27 | cin >> n;#include <iostream> | ^ Main.cpp: In function ‘int main()’: Main.cpp:27:19: error: ‘include’ was not declared in this scope 27 | cin >> n;#include <iostream> | ^~~~~~~ Main.cpp:27:36: error: expected primary-expression before ‘>’ token 27 | cin >> n;#include <iostream> | ^ Main.cpp:38:1: error: expected primary-expression before ‘using’ 38 | using namespace std; | ^~~~~ Main.cpp:45:1: error: a function-definition is not allowed here before ‘{’ token 45 | { | ^ Main.cpp:48:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 48 | int main() | ^~ Main.cpp:48:9: note: remove parentheses to default-initialize a variable 48 | int main() | ^~ | -- Main.cpp:48:9: note: or replace parentheses with braces to value-initialize a variable Main.cpp:49:1: error: a function-definition is not allowed here before ‘{’ token 49 | { | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.