실행 실패 (제출 코드 컴파일 에러)
Main.c:9:26: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘{’ token 9 | void push(int a) { | ^ Main.c:20:1: error: unknown type name ‘vector’; use ‘struct’ keyword to refer to the type 20 | vector after[501]; | ^~~~~~ | struct Main.c:30:9: error: unknown type name ‘node’ 30 | node data[1000000]; | ^~~~ Main.c:33:33: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘{’ token 33 | void push(int n, int t) { | ^ Main.c: In function ‘main’: Main.c:70:43: error: request for member ‘push’ in something not a structure or union 70 | after[tem].push(i); | ^ Main.c:76:27: error: ‘struct priorityQueue’ has no member named ‘push’ 76 | pq.push(i, 0); | ^ Main.c:81:17: error: unknown type name ‘node’; use ‘struct’ keyword to refer to the type 81 | node tem = pq.pop(); | ^~~~ | struct Main.c:81:30: error: ‘struct priorityQueue’ has no member named ‘pop’ 81 | node tem = pq.pop(); | ^ Main.c:82:29: error: request for member ‘num’ in something not a structure or union 82 | int tn = tem.num; | ^ Main.c:83:29: error: request for member ‘buildTime’ in something not a structure or union 83 | int tt = tem.buildTime; | ^ Main.c:87:46: error: request for member ‘size’ in something not a structure or union 87 | for (int i = 0; i < after[tn].size; i++) { | ^ Main.c:88:43: error: request for member ‘data’ in something not a structure or union 88 | int nn = after[tn].data[i]; | ^ Main.c:90:53: error: ‘struct priorityQueue’ has no member named ‘push’ 90 | if (!building[nn].preCnt) pq.push(nn, time[tn]); | ^ Main.c:81:22: warning: variable ‘tem’ set but not used [-Wunused-but-set-variable] 81 | node tem = pq.pop(); | ^~~ Main.c:64:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 64 | scanf("%d", &N); | ^~~~~~~~~~~~~~~ Main.c:66:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 66 | scanf("%d", &building[i].loading); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Main.c:68:25: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 68 | scanf("%d", &tem); | ^~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.