Pagini recente » Borderou de evaluare (job #799106) | Borderou de evaluare (job #1969734) | Borderou de evaluare (job #2739437) | Borderou de evaluare (job #1551472) | Borderou de evaluare (job #2947600)
Borderou de evaluare (job #2947600)
Raport evaluator
Compilare:
main.cpp: In function 'bool r()':
main.cpp:2:121: warning: statement has no effect [-Wunused-value]
2 | std::ifstream i("chess2.in");std::ofstream o("chess2.out");bool r(){int n,x,y,s=0;i>>n>>x>>y;x+=y;for(int i=0;i<n;i++){i>>y;s+=y;}return (x*n<s);}main(){int t;i>>t;while(t--){if(r()){o<<"Cheater\n";}else{o<<"Innocent\n";}}}
| ~^~~
main.cpp: At global scope:
main.cpp:2:147: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | std::ifstream i("chess2.in");std::ofstream o("chess2.out");bool r(){int n,x,y,s=0;i>>n>>x>>y;x+=y;for(int i=0;i<n;i++){i>>y;s+=y;}return (x*n<s);}main(){int t;i>>t;while(t--){if(r()){o<<"Cheater\n";}else{o<<"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 | 1ms | 184kb | Incorect | 0 |
5 | 0ms | 184kb | Incorect | 0 |
6 | 0ms | 184kb | Incorect | 0 |
7 | 0ms | 184kb | Incorect | 0 |
8 | 0ms | 184kb | Incorect | 0 |
9 | 0ms | 184kb | Incorect | 0 |
10 | 0ms | 184kb | Incorect | 0 |
Punctaj total | 0 |