실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘bool isValid(int)’: Main.cpp:19:23: error: a function-definition is not allowed here before ‘{’ token 19 | bool isValid(int row) { | ^ Main.cpp:28:21: error: a function-definition is not allowed here before ‘{’ token 28 | void solve(int row) { | ^ Main.cpp:41:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 41 | int main() { | ^~ Main.cpp:41:9: note: remove parentheses to default-initialize a variable 41 | int main() { | ^~ | -- Main.cpp:41:9: note: or replace parentheses with braces to value-initialize a variable Main.cpp:41:12: error: a function-definition is not allowed here before ‘{’ token 41 | int main() { | ^ Main.cpp:48:2: error: expected ‘}’ at end of input 48 | } | ^ Main.cpp:10:60: note: to match this ‘{’ 10 | if(col[i]==col[row] || abs(col[row]-col[i])==row-i){ | ^ Main.cpp:16:5: warning: unused variable ‘N’ [-Wunused-variable] 16 | int N, res=0; | ^ Main.cpp:16:8: warning: unused variable ‘res’ [-Wunused-variable] 16 | int N, res=0; | ^~~ Main.cpp:17:5: warning: unused variable ‘col’ [-Wunused-variable] 17 | int col[15]; | ^~~ Main.cpp:48:2: error: expected ‘}’ at end of input 48 | } | ^ Main.cpp:9:29: note: to match this ‘{’ 9 | for(int i=0; i<row; i++){ | ^ Main.cpp:48:2: error: expected ‘}’ at end of input 48 | } | ^ Main.cpp:8:23: note: to match this ‘{’ 8 | bool isValid(int row) { | ^ Main.cpp:48:2: warning: control reaches end of non-void function [-Wreturn-type] 48 | } | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.