Borderou de evaluare (job #2623406)

Utilizator alex_benescuAlex Ben alex_benescu Data 3 iunie 2020 09:24:51
Problema Switch Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] #import<stdio.h> ^~~~~~ main.cpp:2:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] main(){freopen("switch.in","r",stdin);freopen("switch.out","w",stdout);int n,i,a,s,d,f,g,h,j,k;scanf("%d",&n);for(i=0;i<n;i++){scanf("%d%d%d%d%d%d%d%d",&a,&s,&d,&f,&g,&h,&j,&k);if((a+s+d+f+g+h+j+k)%2==0)printf("DA\n");else printf("NU\n");}} ^ main.cpp: In function 'int main()': main.cpp:2:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] main(){freopen("switch.in","r",stdin);freopen("switch.out","w",stdout);int n,i,a,s,d,f,g,h,j,k;scanf("%d",&n);for(i=0;i<n;i++){scanf("%d%d%d%d%d%d%d%d",&a,&s,&d,&f,&g,&h,&j,&k);if((a+s+d+f+g+h+j+k)%2==0)printf("DA\n");else printf("NU\n");}} ^ main.cpp:2:71: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] main(){freopen("switch.in","r",stdin);freopen("switch.out","w",stdout);int n,i,a,s,d,f,g,h,j,k;scanf("%d",&n);for(i=0;i<n;i++){scanf("%d%d%d%d%d%d%d%d",&a,&s,&d,&f,&g,&h,&j,&k);if((a+s+d+f+g+h+j+k)%2==0)printf("DA\n");else printf("NU\n");}} ^ main.cpp:2:110: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] main(){freopen("switch.in","r",stdin);freopen("switch.out","w",stdout);int n,i,a,s,d,f,g,h,j,k;scanf("%d",&n);for(i=0;i<n;i++){scanf("%d%d%d%d%d%d%d%d",&a,&s,&d,&f,&g,&h,&j,&k);if((a+s+d+f+g+h+j+k)%2==0)printf("DA\n");else printf("NU\n");}} ^ main.cpp:2:177: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] main(){freopen("switch.in","r",stdin);freopen("switch.out","w",stdout);int n,i,a,s,d,f,g,h,j,k;scanf("%d",&n);for(i=0;i<n;i++){scanf("%d%d%d%d%d%d%d%d",&a,&s,&d,&f,&g,&h,&j,&k);if((a+s+d+f+g+h+j+k)%2==0)printf("DA\n");else printf("NU\n");}} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms131kbOK100
Punctaj total100

Ceva nu functioneaza?