Borderou de evaluare (job #1745350)

Utilizator PopoviciRobertPopovici Robert PopoviciRobert Data 21 august 2016 17:51:51
Problema Nunta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(fi,"%d" ,&n); ^ user.cpp:29:39: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] for(j=0;j<getmax(nr[i&1],nr[1-i&1])||t>0;j++){ ^ user.cpp:30:32: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] t=t+dp[i&1][j]+dp[1-i&1][j]; ^ user.cpp:17:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fi,"%d" ,&n); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbOK10
20ms256kbOK10
30msDepăşitMemory limit exceeded.0
40ms256kbOK10
50msDepăşitMemory limit exceeded.0
60msDepăşitMemory limit exceeded.0
70msDepăşitMemory limit exceeded.0
80ms256kbOK10
90msDepăşitMemory limit exceeded.0
100msDepăşitMemory limit exceeded.0
Punctaj total40

Ceva nu functioneaza?