Pagini recente » Borderou de evaluare (job #1845828) | Borderou de evaluare (job #1734089) | Borderou de evaluare (job #905091) | Borderou de evaluare (job #337490) | Borderou de evaluare (job #3242783)
Borderou de evaluare (job #3242783)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<fstream>
| ^~~~~~
main.cpp:2:64: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | using namespace std;int b;char p,s[8];string r="DA\n",w="NU\n";main(){for(fstream I("paritate.in");I>>p&&I.get(s,8);b++) {int o=0,c=0,i=0;for(;i<7;o+=s[i]-48,c+=(s[i]-48)*(1<<(6-i++)));w+=(p%2!=o%2?to_string(b)+" ":"");r+=c;}ofstream("paritate.out")<<(w.size()>3?w:r);}
| ^~~~
main.cpp: In function 'int main()':
main.cpp:2:180: warning: operation on 'i' may be undefined [-Wsequence-point]
2 | using namespace std;int b;char p,s[8];string r="DA\n",w="NU\n";main(){for(fstream I("paritate.in");I>>p&&I.get(s,8);b++) {int o=0,c=0,i=0;for(;i<7;o+=s[i]-48,c+=(s[i]-48)*(1<<(6-i++)));w+=(p%2!=o%2?to_string(b)+" ":"");r+=c;}ofstream("paritate.out")<<(w.size()>3?w:r);}
| ~^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 303kb | OK | 10 | 30 |
2 | 0ms | 303kb | OK | 10 |
3 | 0ms | 303kb | OK | 10 |
4 | 0ms | 303kb | OK | 10 | 40 |
5 | 0ms | 303kb | OK | 10 |
6 | 1ms | 303kb | OK | 10 |
7 | 2ms | 303kb | OK | 10 |
8 | 2ms | 303kb | OK | 10 | 30 |
9 | 2ms | 557kb | OK | 10 |
10 | 0ms | 303kb | OK | 10 |
Punctaj total | 100 |