실행 실패 (제출 코드 컴파일 에러)
Main.cpp: In function ‘int main()’: Main.cpp:26:5: error: expected ‘,’ or ‘;’ before ‘int’ 26 | int n = 0; | ^~~ Main.cpp:38:27: error: ‘n’ was not declared in this scope 38 | if (grade != "P") n += credits; | ^ Main.cpp:39:16: error: ‘credis’ was not declared in this scope; did you mean ‘credits’? 39 | gpa += credis * g[grade]; | ^~~~~~ | credits Main.cpp:42:19: error: ‘n’ was not declared in this scope 42 | cout << gpa / n; | ^
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.