실행 실패 (제출 코드 컴파일 에러)
Main.c:11:14: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘=’ token 11 | int capa = 12; | ^ Main.c:25:1: error: unknown type name ‘Vector’; use ‘struct’ keyword to refer to the type 25 | Vector res; | ^~~~~~ | struct Main.c:26:1: error: unknown type name ‘Vector’; use ‘struct’ keyword to refer to the type 26 | Vector vec[1001]; | ^~~~~~ | struct Main.c:29:14: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘=’ token 29 | int head = 0; | ^ Main.c: In function ‘tSort’: Main.c:55:28: error: ‘struct Queue’ has no member named ‘push’ 55 | if(ingre[i] == 0) q.push(i); | ^ Main.c:58:13: error: ‘struct Queue’ has no member named ‘empty’ 58 | while(!q.empty()) { | ^ Main.c:59:20: error: ‘struct Queue’ has no member named ‘pop’ 59 | int now = q.pop(); | ^ Main.c:60:12: error: request for member ‘push’ in something not a structure or union 60 | res.push(now); | ^ Main.c:62:36: error: request for member ‘size’ in something not a structure or union 62 | for(int i = 0; i < vec[now].size; i++) { | ^ Main.c:63:32: error: request for member ‘data’ in something not a structure or union 63 | int next = vec[now].data[i]; | ^ Main.c:67:18: error: ‘struct Queue’ has no member named ‘push’ 67 | q.push(next); | ^ Main.c: In function ‘main’: Main.c:82:22: error: request for member ‘push’ in something not a structure or union 82 | vec[prev].push(tmp); | ^ Main.c:91:12: error: request for member ‘size’ in something not a structure or union 91 | if (res.size == n) { | ^ Main.c:92:31: error: request for member ‘size’ in something not a structure or union 92 | for(int i = 0; i < res.size; i++) { | ^ Main.c:93:31: error: request for member ‘data’ in something not a structure or union 93 | printf("%d\n", res.data[i]); | ^ Main.c:74:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 74 | scanf("%d %d", &n, &m); | ^~~~~~~~~~~~~~~~~~~~~~ Main.c:77:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 77 | scanf("%d", &mem); | ^~~~~~~~~~~~~~~~~ Main.c:78:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 78 | scanf("%d", &prev); | ^~~~~~~~~~~~~~~~~~ Main.c:81:13: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 81 | scanf("%d", &tmp); | ^~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.