실행 실패 (제출 코드 컴파일 에러)
Main.c:8:1: error: unknown type name ‘TOWER’ 8 | TOWER tower[500000]; | ^~~~~ Main.c: In function ‘push’: Main.c:12:20: error: expected expression before ‘{’ token 12 | tower[pos++] = {h, count}; | ^ Main.c: In function ‘main’: Main.c:31:28: error: request for member ‘h’ in something not a structure or union 31 | if(tower[j].h >= h) { | ^ Main.c:32:49: error: request for member ‘count’ in something not a structure or union 32 | reception_info[i] = tower[j].count; | ^ Main.c:20:15: warning: unused variable ‘current_tower’ [-Wunused-variable] 20 | int n, h, current_tower=0; | ^~~~~~~~~~~~~ Main.c:22:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 22 | scanf("%d", &n); | ^~~~~~~~~~~~~~~ Main.c:24:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 24 | scanf("%d", &h); | ^~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.