Borderou de evaluare (job #3120888)
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 |
1 | 0ms | 303kb | OK! | 10 |
2 | 0ms | 303kb | OK! | 10 |
3 | 1ms | 303kb | OK! | 10 |
4 | 2ms | 1081kb | OK! | 10 |
5 | 3ms | 1081kb | OK! | 10 |
6 | 9ms | 2441kb | OK! | 10 |
7 | 19ms | 5152kb | OK! | 10 |
8 | 34ms | 7639kb | OK! | 10 |
9 | 118ms | 16367kb | OK! | 10 |
10 | 128ms | 20238kb | OK! | 10 |
Punctaj total | 100 |