실행 실패 (제출 코드 컴파일 에러)
Main.cpp:2:13: error: expected primary-expression before ‘=’ token 2 | #define LMT = 500001 | ^ Main.cpp:8:11: note: in expansion of macro ‘LMT’ 8 | int board[LMT]; | ^~~ Main.cpp: In function ‘int main()’: Main.cpp:2:13: error: expected primary-expression before ‘=’ token 2 | #define LMT = 500001 | ^ Main.cpp:25:13: note: in expansion of macro ‘LMT’ 25 | while(m < LMT){ | ^~~ Main.cpp:27:5: error: ‘board’ was not declared in this scope 27 | board[m] = time++; | ^~~~~ Main.cpp:2:13: error: expected primary-expression before ‘=’ token 2 | #define LMT = 500001 | ^ Main.cpp:31:21: note: in expansion of macro ‘LMT’ 31 | vector<int> visit(LMT, -1); | ^~~ Main.cpp:38:8: error: ‘board’ was not declared in this scope 38 | if(board[x] && t <= board[x] && (board[x] - t) % 2 == 0){ | ^~~~~ Main.cpp:2:13: error: expected primary-expression before ‘=’ token 2 | #define LMT = 500001 | ^ Main.cpp:42:26: note: in expansion of macro ‘LMT’ 42 | if(dt < 0 || dt >= LMT) continue; | ^~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.