Pagini recente » Borderou de evaluare (job #2271239) | Borderou de evaluare (job #1104671) | Borderou de evaluare (job #1123216) | Borderou de evaluare (job #1869087) | Borderou de evaluare (job #2740012)
Borderou de evaluare (job #2740012)
Raport evaluator
Compilare:
main.cpp:3:129: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
using namespace std;ifstream f("reteta2.in");ofstream g("reteta2.out");char s[1001],*c,*p,l[]=" ()";int t;map<string,int>h;main(){f.get(s,1002);c=q(s);while(c){if(*c>'/'&*c<':')t+=atoi(c);else{p=q(0),h[c]+=atoi(p);}c=q(0);}g<<t<<endl;for(auto i:h)g<<i.first<<' '<<i.second<<endl;}
^
main.cpp: In function 'int main()':
main.cpp:3:166: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
using namespace std;ifstream f("reteta2.in");ofstream g("reteta2.out");char s[1001],*c,*p,l[]=" ()";int t;map<string,int>h;main(){f.get(s,1002);c=q(s);while(c){if(*c>'/'&*c<':')t+=atoi(c);else{p=q(0),h[c]+=atoi(p);}c=q(0);}g<<t<<endl;for(auto i:h)g<<i.first<<' '<<i.second<<endl;}
~~^~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK! | 10 |
2 | 2ms | 131kb | OK! | 10 |
3 | 3ms | 131kb | OK! | 10 |
4 | 3ms | 131kb | OK! | 10 |
5 | 2ms | 131kb | OK! | 10 |
6 | 3ms | 131kb | OK! | 10 |
7 | 3ms | 131kb | OK! | 10 |
8 | 3ms | 131kb | OK! | 10 |
9 | 3ms | 131kb | OK! | 10 |
10 | 3ms | 131kb | OK! | 10 |
Punctaj total | 100 |