실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:23:19: error: cannot convert ‘std::queue<int>::empty’ from type ‘bool (std::queue<int>::)() const’ to type ‘bool’ 23 | if(!q.empty){ | ^~~~~ Main.cpp:23:19: error: in argument to unary ! 23 | if(!q.empty){ | ~~^~~~~ Main.cpp:24:25: error: ‘class std::queue<int>’ has no member named ‘top’; did you mean ‘pop’? 24 | cout<<q.top()<<"\n"; | ^~~ | pop Main.cpp:35:19: error: cannot convert ‘std::queue<int>::empty’ from type ‘bool (std::queue<int>::)() const’ to type ‘bool’ 35 | if(!q.empty){ | ^~~~~ Main.cpp:35:19: error: in argument to unary ! 35 | if(!q.empty){ | ~~^~~~~ Main.cpp:43:19: error: cannot convert ‘std::queue<int>::empty’ from type ‘bool (std::queue<int>::)() const’ to type ‘bool’ 43 | if(!q.empty){ | ^~~~~ Main.cpp:43:19: error: in argument to unary ! 43 | if(!q.empty){ | ~~^~~~~ Main.cpp:51:19: error: cannot convert ‘std::queue<int>::empty’ from type ‘bool (std::queue<int>::)() const’ to type ‘bool’ 51 | if(!q.empty){ | ^~~~~ Main.cpp:51:19: error: in argument to unary ! 51 | if(!q.empty){ | ~~^~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
비공개 코드입니다. 코드 작성자만 볼 수 있습니다.
반례를 발견하지 못했습니다.