Pagini recente » Borderou de evaluare (job #1182478) | Borderou de evaluare (job #2623406)
Borderou de evaluare (job #2623406)
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 |
1 | 3ms | 131kb | OK | 100 |
Punctaj total | 100 |