Borderou de evaluare (job #2817376)

Utilizator AlexandruBenescuAlexandru Benescu AlexandruBenescu Data 13 decembrie 2021 16:25:02
Problema Perle2 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import<fstream> | ^~~~~~ main.cpp:2:74: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | std::ifstream f("perle2.in");std::ofstream g("perle2.out");int n,k,x,m,s;main(){f>>n>>k;while(n--){f>>x;x-=k;if(s<0)s=0;s+=x;if(s>m)m=s;}g<<m;} | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbOK10
22ms184kbOK10
32ms184kbOK10
416ms200kbOK10
516ms200kbOK10
621ms200kbOK10
721ms200kbOK10
825ms200kbOK10
925ms200kbOK10
1021ms200kbOK10
Punctaj total100

Ceva nu functioneaza?