Pagini recente » Borderou de evaluare (job #1917341) | Borderou de evaluare (job #673869) | Borderou de evaluare (job #2744416) | Borderou de evaluare (job #236517) | Borderou de evaluare (job #2947594)
Borderou de evaluare (job #2947594)
Raport evaluator
Compilare:
main.cpp:2:154: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | std::ifstream cin("chess2.in");std::ofstream cout("chess2.out");bool r(){int n,x,y,s;cin>>n>>x>>y;x+=y;for(int i=0;i<n;i++){cin>>y;s+=y;}return (x*n<s);}main(){int t;cin>>t;while(t--){if(r()){cout<<"Cheater\n";}else{cout<<"Innocent\n";}}}
| ^~~~
main.cpp: In function 'bool r()':
main.cpp:2:133: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
2 | std::ifstream cin("chess2.in");std::ofstream cout("chess2.out");bool r(){int n,x,y,s;cin>>n>>x>>y;x+=y;for(int i=0;i<n;i++){cin>>y;s+=y;}return (x*n<s);}main(){int t;cin>>t;while(t--){if(r()){cout<<"Cheater\n";}else{cout<<"Innocent\n";}}}
| ~^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | Incorect | 0 |
2 | 0ms | 184kb | Incorect | 0 |
3 | 0ms | 184kb | Incorect | 0 |
4 | 0ms | 184kb | Incorect | 0 |
5 | 0ms | 184kb | Incorect | 0 |
6 | 0ms | 184kb | Incorect | 0 |
7 | 0ms | 184kb | Incorect | 0 |
8 | 0ms | 184kb | Incorect | 0 |
9 | 5ms | 184kb | Incorect | 0 |
10 | 0ms | 184kb | Incorect | 0 |
Punctaj total | 0 |