Borderou de evaluare (job #3231609)

Utilizator alexionut05Alexandru-Ionut Tincu alexionut05 Data 27 mai 2024 12:31:31
Problema Stramosi Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp:2:88: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | int n,m,v[1<<18],i,x,y,k;std::fstream f("stramosi.in");std::ofstream g("stramosi.out");main(){for(f>>n>>m;i<n;f>>v[++i],k+=v[i]==i-1);if(k==n)for(;f>>x>>y;g<<(x>=y?x-y:0)<<'\n');else for(;f>>x>>y;g<<x<<'\n')for(;x&&y--;)x=v[x];} | ^~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK!10
20ms303kbOK!10
31ms303kbOK!10
41ms303kbOK!10
52ms303kbOK!10
64ms557kbOK!10
714ms815kbOK!10
824ms1093kbOK!10
944ms2527kbOK!10
1044ms2785kbOK!10
Punctaj total100

Ceva nu functioneaza?