실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:9:21: error: expected unqualified-id before ‘int’ 9 | for (int i = 2, int j = 1; i <= N; i++, j++) { | ^~~ Main.cpp:9:20: error: expected ‘;’ before ‘int’ 9 | for (int i = 2, int j = 1; i <= N; i++, j++) { | ^~~~ | ; Main.cpp:9:34: warning: for increment expression has no effect [-Wunused-value] 9 | for (int i = 2, int j = 1; i <= N; i++, j++) { | ~~^~~~ Main.cpp:9:38: error: expected ‘)’ before ‘;’ token 9 | for (int i = 2, int j = 1; i <= N; i++, j++) { | ~ ^ | ) Main.cpp:9:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 9 | for (int i = 2, int j = 1; i <= N; i++, j++) { | ^~~ Main.cpp:9:40: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 9 | for (int i = 2, int j = 1; i <= N; i++, j++) { | ^ Main.cpp:9:25: warning: unused variable ‘j’ [-Wunused-variable] 9 | for (int i = 2, int j = 1; i <= N; i++, j++) { | ^ Main.cpp:9:40: error: ‘i’ was not declared in this scope 9 | for (int i = 2, int j = 1; i <= N; i++, j++) { | ^ Main.cpp:9:45: error: ‘j’ was not declared in this scope 9 | for (int i = 2, int j = 1; i <= N; i++, j++) { | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.