Borderou de evaluare (job #2740007)

Utilizator bubblegumixUdrea Robert bubblegumix Data 10 aprilie 2021 22:14:54
Problema Reteta2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 30

Raport evaluator

Compilare: main.cpp:2:128: 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<char*,int>h;main(){f.get(s,1002);c=strtok(s,l);while(c){if(*c>'/'&&*c<':')t+=atoi(c);else{p=strtok(0,l);h[c]+=atoi(p);}c=strtok(0,l);}g<<t<<endl;for(auto i:h)g<<*(i.first)<<" "<<i.second<<endl;} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbAfisarea Ingredientelor gresita3
23ms131kbAfisarea Ingredientelor gresita3
33ms131kbAfisarea Ingredientelor gresita3
44ms131kbAfisarea Ingredientelor gresita3
53ms131kbAfisarea Ingredientelor gresita3
64ms131kbAfisarea Ingredientelor gresita3
73ms131kbAfisarea Ingredientelor gresita3
83ms131kbAfisarea Ingredientelor gresita3
94ms131kbAfisarea Ingredientelor gresita3
103ms131kbAfisarea Ingredientelor gresita3
Punctaj total30

Ceva nu functioneaza?