실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘FindNum’: Main.c:30:32: warning: variable ‘flag’ set but not used [-Wunused-but-set-variable] 30 | int len = strlen(str), flag = 0; | ^~~~ Main.c: At top level: Main.c:53:7: error: conflicting types for ‘numbers’; have ‘char *[10000]’ 53 | char* numbers[10000]; | ^~~~~~~ Main.c:5:5: note: previous declaration of ‘numbers’ with type ‘int[10000]’ 5 | int numbers[10000]; | ^~~~~~~ Main.c:54:5: error: redefinition of ‘idx’ 54 | int idx = -1; | ^~~ Main.c:6:5: note: previous definition of ‘idx’ with type ‘int’ 6 | int idx = -1; | ^~~ Main.c:57:5: error: redefinition of ‘t_idx’ 57 | int t_idx = -1; | ^~~~~ Main.c:9:5: note: previous definition of ‘t_idx’ with type ‘int’ 9 | int t_idx = -1; | ^~~~~ Main.c:59:6: error: conflicting types for ‘NPush’; have ‘void(char *)’ 59 | void NPush(char* s) { | ^~~~~ Main.c:11:6: note: previous definition of ‘NPush’ with type ‘void(int)’ 11 | void NPush(int x) { | ^~~~~ Main.c:63:6: error: redefinition of ‘TPush’ 63 | void TPush(char c) { | ^~~~~ Main.c:15:6: note: previous definition of ‘TPush’ with type ‘void(char)’ 15 | void TPush(char c) { | ^~~~~ Main.c:67:6: error: redefinition of ‘TInit’ 67 | void TInit() { | ^~~~~ Main.c:19:6: note: previous definition of ‘TInit’ with type ‘void()’ 19 | void TInit() { | ^~~~~ Main.c:72:5: error: redefinition of ‘IsNum’ 72 | int IsNum(char c) { | ^~~~~ Main.c:24:5: note: previous definition of ‘IsNum’ with type ‘int(char)’ 24 | int IsNum(char c) { | ^~~~~ Main.c:77:6: error: redefinition of ‘FindNum’ 77 | void FindNum(char* str) { | ^~~~~~~ Main.c:29:6: note: previous definition of ‘FindNum’ with type ‘void(char *)’ 29 | void FindNum(char* str) { | ^~~~~~~ Main.c: In function ‘FindNum’: Main.c:78:32: warning: variable ‘flag’ set but not used [-Wunused-but-set-variable] 78 | int len = strlen(str), flag = 0; | ^~~~ Main.c: In function ‘main’: Main.c:104:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 104 | scanf("%d", &N); | ^~~~~~~~~~~~~~~ Main.c:109:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 109 | scanf("%s", line); | ^~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.