실행 실패 (제출 코드 컴파일 에러)
Main.c:1:1: error: expected identifier or ‘(’ before ‘/’ token 1 | /#include <bits/stdc++.h> | ^ Main.c:1:2: error: stray ‘#’ in program 1 | /#include <bits/stdc++.h> | ^ Main.c: In function ‘main’: Main.c:27:5: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 27 | scanf("%d",&n); | ^~~~~ Main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | /#include <bits/stdc++.h> Main.c:27:5: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 27 | scanf("%d",&n); | ^~~~~ Main.c:27:5: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ Main.c:27:17: error: ‘n’ undeclared (first use in this function) 27 | scanf("%d",&n); | ^ Main.c:27:17: note: each undeclared identifier is reported only once for each function it appears in Main.c:28:39: error: ‘a’ undeclared (first use in this function) 28 | for(int i= 0;i<n;i++) scanf("%d",&a[i]); | ^ Main.c:37:27: error: ‘u’ undeclared (first use in this function) 37 | if(a[j]%2==0) u[e++]=j; | ^ Main.c:38:18: error: ‘v’ undeclared (first use in this function) 38 | else v[o++]=j; | ^ Main.c:58:9: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration] 58 | memset(m,-1,sizeof(m)); | ^~~~~~ Main.c:1:1: note: include ‘<string.h>’ or provide a declaration of ‘memset’ +++ |+#include <string.h> 1 | /#include <bits/stdc++.h> Main.c:58:9: warning: incompatible implicit declaration of built-in function ‘memset’ [-Wbuiltin-declaration-mismatch] 58 | memset(m,-1,sizeof(m)); | ^~~~~~ Main.c:58:9: note: include ‘<string.h>’ or provide a declaration of ‘memset’ Main.c:71:15: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 71 | if(rc==0) printf("-1"); | ^~~~~~ Main.c:71:15: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ Main.c:71:15: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] Main.c:71:15: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ Main.c:86:31: warning: incompatible implicit declaration of built-in function ‘printf’ [-Wbuiltin-declaration-mismatch] 86 | for(int i=0;i<rc;i++) printf("%d ",r[i]); | ^~~~~~ Main.c:86:31: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.