실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:25:14: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 25 | else if (S.top() < k) | ^~ Main.cpp:27:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 27 | break; | ^~~~~ Main.cpp:13:10: warning: variable ‘flag’ set but not used [-Wunused-but-set-variable] 13 | bool flag = false; | ^~~~ Main.cpp: At global scope: Main.cpp:30:5: error: expected unqualified-id before ‘if’ 30 | if (flag) cout << "NO"; | ^~ Main.cpp:31:5: error: expected unqualified-id before ‘else’ 31 | else { | ^~~~ Main.cpp:34:1: error: expected declaration before ‘}’ token 34 | } | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.