Pagini recente » Borderou de evaluare (job #3274375) | Borderou de evaluare (job #2715999) | Borderou de evaluare (job #3161594) | Borderou de evaluare (job #445175) | Borderou de evaluare (job #3127516)
Borderou de evaluare (job #3127516)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<bits/stdc++.h>
| ^~~~~~
main.cpp:2:109: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
2 | using namespace std;fstream I("reteta2.in");ofstream O("reteta2.out");map<string,int>i;char r[999],*S,*c,*m="( )";int T;main(){I.get(r,1000);S=strtok(r,m);for(;S;S=strtok(0,m))if(*S>'/'&*S<':')T+=atoi(S);else c=strtok(0,m),i[S]+=atoi(c);O<<T<<'\n';for(auto t:i)O<<t.first<<' '<<t.second<<'\n';}
| ^~~~~
main.cpp:2:121: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | using namespace std;fstream I("reteta2.in");ofstream O("reteta2.out");map<string,int>i;char r[999],*S,*c,*m="( )";int T;main(){I.get(r,1000);S=strtok(r,m);for(;S;S=strtok(0,m))if(*S>'/'&*S<':')T+=atoi(S);else c=strtok(0,m),i[S]+=atoi(c);O<<T<<'\n';for(auto t:i)O<<t.first<<' '<<t.second<<'\n';}
| ^~~~
main.cpp: In function 'int main()':
main.cpp:2:182: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
2 | using namespace std;fstream I("reteta2.in");ofstream O("reteta2.out");map<string,int>i;char r[999],*S,*c,*m="( )";int T;main(){I.get(r,1000);S=strtok(r,m);for(;S;S=strtok(0,m))if(*S>'/'&*S<':')T+=atoi(S);else c=strtok(0,m),i[S]+=atoi(c);O<<T<<'\n';for(auto t:i)O<<t.first<<' '<<t.second<<'\n';}
| ~~^~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | OK! | 10 |
2 | 0ms | 303kb | OK! | 10 |
3 | 0ms | 303kb | OK! | 10 |
4 | 0ms | 303kb | OK! | 10 |
5 | 0ms | 303kb | OK! | 10 |
6 | 0ms | 303kb | OK! | 10 |
7 | 0ms | 303kb | OK! | 10 |
8 | 0ms | 303kb | OK! | 10 |
9 | 0ms | 303kb | OK! | 10 |
10 | 0ms | 303kb | OK! | 10 |
Punctaj total | 100 |