Pagini recente » Borderou de evaluare (job #2732067) | occurences | Borderou de evaluare (job #869116) | Borderou de evaluare (job #2583584) | Borderou de evaluare (job #2947593)
Borderou de evaluare (job #2947593)
Raport evaluator
Compilare:
main.cpp:2:155: 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 | 0ms | 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 |