실행 실패 (제출 코드 컴파일 에러)
Main.cpp:1:2: error: stray ‘#’ in program 1 | /#include <bits/stdc++.h> | ^ Main.cpp:1:1: error: expected unqualified-id before ‘/’ token 1 | /#include <bits/stdc++.h> | ^ Main.cpp: In function ‘int main()’: Main.cpp:27:17: error: ‘n’ was not declared in this scope 27 | scanf("%d",&n); | ^ Main.cpp:27:5: error: ‘scanf’ was not declared in this scope 27 | scanf("%d",&n); | ^~~~~ Main.cpp:28:39: error: ‘a’ was not declared in this scope 28 | for(int i= 0;i<n;i++) scanf("%d",&a[i]); | ^ Main.cpp:32:16: error: ‘a’ was not declared in this scope 32 | if(!pr(a[0]+a[i])) continue; | ^ Main.cpp:37:16: error: ‘a’ was not declared in this scope 37 | if(a[j]%2==0) u[e++]=j; | ^ Main.cpp:37:27: error: ‘u’ was not declared in this scope 37 | if(a[j]%2==0) u[e++]=j; | ^ Main.cpp:38:18: error: ‘v’ was not declared in this scope 38 | else v[o++]=j; | ^ Main.cpp:40:12: error: ‘a’ was not declared in this scope 40 | if(a[0]%2==0) u[e++]=0; | ^ Main.cpp:40:23: error: ‘u’ was not declared in this scope 40 | if(a[0]%2==0) u[e++]=0; | ^ Main.cpp:41:14: error: ‘v’ was not declared in this scope 41 | else v[o++]=0; | ^ Main.cpp:43:12: error: ‘a’ was not declared in this scope 43 | if(a[i]%2==0) u[e++]=i; | ^ Main.cpp:43:23: error: ‘u’ was not declared in this scope 43 | if(a[i]%2==0) u[e++]=i; | ^ Main.cpp:44:14: error: ‘v’ was not declared in this scope 44 | else v[o++]=i; | ^ Main.cpp:51:24: error: ‘a’ was not declared in this scope 51 | if (pr(a[u[j]]+a[v[k]])) | ^ Main.cpp:51:26: error: ‘u’ was not declared in this scope 51 | if (pr(a[u[j]]+a[v[k]])) | ^ Main.cpp:51:34: error: ‘v’ was not declared in this scope 51 | if (pr(a[u[j]]+a[v[k]])) | ^ Main.cpp:58:9: error: ‘memset’ was not declared in this scope 58 | memset(m,-1,sizeof(m)); | ^~~~~~ Main.cpp:1:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? +++ |+#include <cstring> 1 | /#include <bits/stdc++.h> Main.cpp:68:23: error: ‘a’ was not declared in this scope 68 | if(t) r[rc++]=a[i]; | ^ Main.cpp:71:15: error: ‘printf’ was not declared in this scope 71 | if(rc==0) printf("-1"); | ^~~~~~ Main.cpp:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? +++ |+#include <cstdio> 1 | /#include <bits/stdc++.h> Main.cpp:86:31: error: ‘printf’ was not declared in this scope 86 | for(int i=0;i<rc;i++) printf("%d ",r[i]); | ^~~~~~ Main.cpp:86:31: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
정답 개수:
-
틀린 개수:
-
실행 실패 개수:
-
반례를 발견하지 못했습니다.