실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:8:9: warning: implicit declaration of function ‘scanf_s’; did you mean ‘scanf’? [-Wimplicit-function-declaration] 8 | scanf_s("%d %d", &N, &M); | ^~~~~~~ | scanf Main.c: At top level: Main.c:27:2: error: stray ‘#’ in program 27 | }#include<stdio.h> | ^ Main.c:27:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘<’ token 27 | }#include<stdio.h> | ^ Main.c:29:5: error: redefinition of ‘table’ 29 | int table[100000] = { 0, }; | ^~~~~ Main.c:3:5: note: previous definition of ‘table’ with type ‘int[100000]’ 3 | int table[100000] = { 0, }; | ^~~~~ Main.c:30:5: error: redefinition of ‘tableSum’ 30 | int tableSum[100000] = { 0, }; | ^~~~~~~~ Main.c:4:5: note: previous definition of ‘tableSum’ with type ‘int[100000]’ 4 | int tableSum[100000] = { 0, }; | ^~~~~~~~ Main.c:31:5: error: redefinition of ‘sum’ 31 | int sum = 0; | ^~~ Main.c:5:5: note: previous definition of ‘sum’ with type ‘int’ 5 | int sum = 0; | ^~~ Main.c:32:5: error: redefinition of ‘main’ 32 | int main(void) { | ^~~~ Main.c:6:5: note: previous definition of ‘main’ with type ‘int(void)’ 6 | int main(void) { | ^~~~ Main.c: In function ‘main’: Main.c:33:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 33 | scanf("%d %d", &N, &M); | ^~~~~~~~~~~~~~~~~~~~~~ Main.c:35:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 35 | scanf("%d ", &table[i]); | ^~~~~~~~~~~~~~~~~~~~~~~ Main.c:42:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 42 | scanf("%d %d", &n, &m); | ^~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.