실행 실패 (제출 코드 컴파일 에러)
Main.c: In function ‘cantore’: Main.c:8:9: error: ‘i’ undeclared (first use in this function) 8 | for(i=1;i<=3^cnt;i++) | ^ Main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in Main.c:8:18: error: ‘cnt’ undeclared (first use in this function); did you mean ‘cnt2’? 8 | for(i=1;i<=3^cnt;i++) | ^~~ | cnt2 Main.c:10:5: error: ‘else’ without a previous ‘if’ 10 | else if(cnt1>cnt2){ | ^~~~ Main.c: In function ‘main’: Main.c:18:13: warning: comparison between pointer and integer 18 | while(wa!=NULL){ | ^~ Main.c:17:12: warning: unused variable ‘i’ [-Wunused-variable] 17 | int wa,i,cnt1=0,cnt2=0; | ^ Main.c: In function ‘cantore’: Main.c:14:1: warning: control reaches end of non-void function [-Wreturn-type] 14 | } | ^ Main.c: In function ‘main’: Main.c:19:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 19 | scanf("%d",&wa); | ^~~~~~~~~~~~~~~
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.