실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘main’: Main.c:19:36: error: expected ‘)’ before ‘;’ token 19 | scanf("%s %s %s", s1, s2,s3;) // 1 과목씩 받는다. | ~ ^ | ) Main.c:19:38: error: expected ‘;’ before ‘if’ 19 | scanf("%s %s %s", s1, s2,s3;) // 1 과목씩 받는다. | ^ | ; 20 | 21 | if (s3[0] == "P") // P과목이면 넘긴다. 필요 X | ~~ Main.c:23:13: error: ‘else’ without a previous ‘if’ 23 | else { // 값을 배열에 넣는다. | ^~~~ Main.c:28:33: error: ‘총’ undeclared (first use in this function) 28 | cnt++; (총 과목수) | ^~ Main.c:28:33: note: each undeclared identifier is reported only once for each function it appears in Main.c:28:35: error: expected ‘)’ before ‘과목수’ 28 | cnt++; (총 과목수) | ~ ^~~~~~~ | ) Main.c:28:43: error: expected ‘;’ before ‘}’ token 28 | cnt++; (총 과목수) | ^ | ; 29 | } | ~ Main.c:9:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%d", &N); // 테스트 케이스 | ^~~~~~~~~~~~~~~ Main.c:19:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 19 | scanf("%s %s %s", s1, s2,s3;) // 1 과목씩 받는다. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.