실행 실패 (제출 코드 컴파일 에러)
Main.cpp:11:1: error: ‘queue’ does not name a type 11 | queue<pair<int, char>> direction; | ^~~~~ Main.cpp: In function ‘int main()’: Main.cpp:33:9: error: ‘direction’ was not declared in this scope 33 | direction.push({t, c}); | ^~~~~~~~~ Main.cpp:57:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::deque<std::pair<int, int> >::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 57 | for (int i = 0; i < snake.size(); i++) { // 자기 몸에 부딫 | ~~^~~~~~~~~~~~~~ Main.cpp:75:22: error: ‘direction’ was not declared in this scope 75 | if (clock == direction.front().first) { | ^~~~~~~~~ Main.cpp:15:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | scanf("%d", &n); | ~~~~~^~~~~~~~~~ Main.cpp:17:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 17 | scanf("%d", &k); | ~~~~~^~~~~~~~~~ Main.cpp:21:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 21 | scanf("%d %d", &r, &c); | ~~~~~^~~~~~~~~~~~~~~~~ Main.cpp:26:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 26 | scanf("%d", &l); | ~~~~~^~~~~~~~~~ Main.cpp:31:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 31 | scanf("%d %c", &t, &c); | ~~~~~^~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.