실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:50:13: error: expected ‘}’ before ‘else’ 50 | else if(seq == 2){ | ^~~~ Main.cpp:46:28: note: to match this ‘{’ 46 | if(s.second == fre){ | ^ Main.cpp:28:9: warning: unused variable ‘center’ [-Wunused-variable] 28 | int center = (n/2)+1; | ^~~~~~ Main.cpp:29:9: warning: unused variable ‘pos’ [-Wunused-variable] 29 | int pos = 1; | ^~~ Main.cpp: At global scope: Main.cpp:56:5: error: expected unqualified-id before ‘if’ 56 | if(second > -4001){ | ^~ Main.cpp:60:5: error: ‘cout’ does not name a type 60 | cout << round(sum/n)<< '\n'; | ^~~~ Main.cpp:61:5: error: ‘cout’ does not name a type 61 | cout << center << '\n'; | ^~~~ Main.cpp:62:5: error: ‘cout’ does not name a type 62 | cout << fre << '\n'; | ^~~~ Main.cpp:63:5: error: ‘cout’ does not name a type 63 | cout << max - min << '\n'; | ^~~~ Main.cpp:65:5: error: expected unqualified-id before ‘return’ 65 | return 0; | ^~~~~~ Main.cpp:66:1: error: expected declaration before ‘}’ token 66 | } | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.