실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘bool stackfunc(std::string)’: Main.cpp:37:25: error: ‘push’ was not declared in this scope 37 | push(n); | ^~~~ Main.cpp:40:33: error: ‘peek’ was not declared in this scope 40 | if (n == ')' && peek() != '(') { | ^~~~ Main.cpp:41:25: error: ‘Remove_All’ was not declared in this scope 41 | Remove_All(); | ^~~~~~~~~~ Main.cpp:45:25: error: ‘pop’ was not declared in this scope; did you mean ‘popen’? 45 | pop(); | ^~~ | popen Main.cpp:47:33: error: ‘peek’ was not declared in this scope 47 | if (n == ']' && peek() != '[') { | ^~~~ Main.cpp:48:25: error: ‘Remove_All’ was not declared in this scope 48 | Remove_All(); | ^~~~~~~~~~ Main.cpp:52:25: error: ‘pop’ was not declared in this scope; did you mean ‘popen’? 52 | pop(); | ^~~ | popen Main.cpp:54:33: error: ‘peek’ was not declared in this scope 54 | if (n == '}' && peek() != '{') { | ^~~~ Main.cpp:55:25: error: ‘Remove_All’ was not declared in this scope 55 | Remove_All(); | ^~~~~~~~~~ Main.cpp:59:25: error: ‘pop’ was not declared in this scope; did you mean ‘popen’? 59 | pop(); | ^~~ | popen Main.cpp:64:13: error: ‘Is_Empty’ was not declared in this scope 64 | if (Is_Empty()) { | ^~~~~~~~ Main.cpp:65:17: error: ‘Remove_All’ was not declared in this scope 65 | Remove_All(); | ^~~~~~~~~~ Main.cpp:69:17: error: ‘Remove_All’ was not declared in this scope 69 | Remove_All(); | ^~~~~~~~~~ Main.cpp: In function ‘void Remove_All()’: Main.cpp:111:23: warning: unused variable ‘tmp’ [-Wunused-variable] 111 | Node* tmp = top; | ^~~ Main.cpp: In function ‘bool stackfunc(std::string)’: Main.cpp:73:1: warning: control reaches end of non-void function [-Wreturn-type] 73 | } | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.