실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:7:16: error: ‘MAX’ undeclared (first use in this function); did you mean ‘Max’? 7 | fgets(arr, MAX, stdin); | ^~~ | Max Main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in Main.c:9:12: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration] 9 | while (strcmp(arr, ".\n")){ | ^~~~~~ Main.c:2:1: note: include ‘<string.h>’ or provide a declaration of ‘strcmp’ 1 | #include <stdio.h> +++ |+#include <string.h> 2 | #define Max 102 //fgets 함수는 마지막에 \0을 추가로 저장하기에 101 + 1 Main.c:11:32: warning: implicit declaration of function ‘push’ [-Wimplicit-function-declaration] 11 | if (arr[i] == '(') push(stack,'('); | ^~~~ Main.c:14:39: warning: implicit declaration of function ‘pop’; did you mean ‘popen’? [-Wimplicit-function-declaration] 14 | if(stack[top] == '(') pop(); | ^~~ | popen Main.c:20:22: error: ‘str’ undeclared (first use in this function) 20 | else if (str[i] == ']') { //위에랑 마찬가지. | ^~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.