실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:11:15: error: expected initializer before ‘<’ token 11 | stack vstack<int>; | ^ Main.cpp:15:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 15 | for (int j = 0; j < vps.length(); j++) { | ~~^~~~~~~~~~~~~~ Main.cpp:16:18: warning: comparison with string literal results in unspecified behavior [-Waddress] 16 | if (vps[j] == "(") vstack.push(1); Main.cpp:16:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] Main.cpp:16:26: error: ‘vstack’ was not declared in this scope; did you mean ‘obstack’? 16 | if (vps[j] == "(") vstack.push(1); | ^~~~~~ | obstack Main.cpp:17:23: warning: comparison with string literal results in unspecified behavior [-Waddress] 17 | else if (vps[j] == ")") vstack.pop(); Main.cpp:17:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] Main.cpp:17:31: error: ‘vstack’ was not declared in this scope; did you mean ‘obstack’? 17 | else if (vps[j] == ")") vstack.pop(); | ^~~~~~ | obstack Main.cpp:19:9: error: ‘vstack’ was not declared in this scope; did you mean ‘obstack’? 19 | if (vstack.size() == 0) cout << "YES\n"; | ^~~~~~ | obstack
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.