Borderou de evaluare (job #3120888)

Utilizator OldpugAlex Ionescu Oldpug Data 9 aprilie 2023 09:21:54
Problema Stramosi 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:61: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] 2 | int g[25][1<<18],n,m,i,j,k=1;std::ifstream o{"stramosi.in"};main(){for(o>>n>>m;i<n;o>>g[0][++i]);for(;1<<k<=n;++k)for(j=0;j<n;)g[k][j]=g[k-1][g[k-1][++j]];for(std::ofstream s{"stramosi.out"};m--;s<<i<<'\n')for(k=0,o>>i>>j;j;++k,j/=2)j&1?i=g[k][i]:i;} | ^~~~ main.cpp: In function 'int main()': main.cpp:2:150: warning: operation on 'j' may be undefined [-Wsequence-point] 2 | int g[25][1<<18],n,m,i,j,k=1;std::ifstream o{"stramosi.in"};main(){for(o>>n>>m;i<n;o>>g[0][++i]);for(;1<<k<=n;++k)for(j=0;j<n;)g[k][j]=g[k-1][g[k-1][++j]];for(std::ofstream s{"stramosi.out"};m--;s<<i<<'\n')for(k=0,o>>i>>j;j;++k,j/=2)j&1?i=g[k][i]:i;} | ^~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbOK!10
20ms303kbOK!10
31ms303kbOK!10
42ms1081kbOK!10
53ms1081kbOK!10
69ms2441kbOK!10
719ms5152kbOK!10
834ms7639kbOK!10
9118ms16367kbOK!10
10128ms20238kbOK!10
Punctaj total100

Ceva nu functioneaza?