Borderou de evaluare (job #2739769)

Utilizator bubblegumixUdrea Robert bubblegumix Data 9 aprilie 2021 21:54:46
Problema Reteta2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:2:191: warning: suggest parentheses around assignment used as truth value [-Wparentheses] using namespace std;ifstream f("reteta2.in");ofstream g("reteta2.out");char s[1002],*c,*p;int t;map<string, int> h;int main(){f.getline(s, 1002);c=strtok(s," ()");p=c;while (c=strtok(0," ()")){if(*c>'/'&&*c<':'){if(p)h[p]+=atoi(c),p=0;else t+=atoi(c);}else p=c;}g<<t<<endl;for(auto i: h)g<<i.first<<" "<<i.second<<endl;} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK!10
22ms131kbOK!10
32ms131kbOK!10
42ms131kbOK!10
52ms131kbOK!10
63ms131kbOK!10
73ms131kbOK!10
83ms131kbOK!10
93ms131kbOK!10
103ms131kbOK!10
Punctaj total100

Ceva nu functioneaza?