Borderou de evaluare (job #2204530)

Utilizator georgerapeanuRapeanu George georgerapeanu Data 16 mai 2018 12:04:02
Problema Hanoi4 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:30:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%d",dp[N][4]); ^ user.cpp:28:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&N); ^ user.cpp:18:18: warning: iteration 1004 invokes undefined behavior [-Waggressive-loop-optimizations] dp[i][2] = (i == 1 ? 1 : LIM); ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ user.cpp:14:21: note: within this loop for(int i = 1;i <= 1005;i++){ ~~^~~~~~~ user.cpp:21:27: warning: iteration 2 invokes undefined behavior [-Waggressive-loop-optimizations] if(dp[i][j] > dp[k][j] * 2 + dp[i - k][j - 1]){ ~~~~~~~^ user.cpp:19:25: note: within this loop for(int j = 3;j <= 65;j++){ ~~^~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
1176ms756kbKilled by signal 11(SIGSEGV).0
2176ms876kbKilled by signal 11(SIGSEGV).0
3176ms860kbKilled by signal 11(SIGSEGV).0
4180ms796kbKilled by signal 11(SIGSEGV).0
5176ms804kbKilled by signal 11(SIGSEGV).0
6176ms752kbKilled by signal 11(SIGSEGV).0
7176ms868kbKilled by signal 11(SIGSEGV).0
8176ms800kbKilled by signal 11(SIGSEGV).0
9176ms880kbKilled by signal 11(SIGSEGV).0
10176ms872kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?