Borderou de evaluare (job #1969484)

Utilizator pas.andreiPopovici Andrei-Sorin pas.andrei Data 18 aprilie 2017 14:49:40
Problema Sudest Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘short int calc(short int, short int, short int)’: user.cpp:5:13: warning: overflow in implicit constant conversion [-Woverflow] #define INF 0x3f3f3f3f ^ user.cpp:16:39: note: in expansion of macro ‘INF’ if(pos==0 && (x!=1 || y!=1)) return -INF; ^ user.cpp:5:13: warning: overflow in implicit constant conversion [-Woverflow] #define INF 0x3f3f3f3f ^ user.cpp:17:25: note: in expansion of macro ‘INF’ if(x<1 || y<1) return -INF; ^ user.cpp: In function ‘int main()’: user.cpp:38:8: warning: unused variable ‘t’ [-Wunused-variable] short t,i,nr,n,j,k; ^ user.cpp:38:12: warning: unused variable ‘nr’ [-Wunused-variable] short t,i,nr,n,j,k; ^ user.cpp:40:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%hd",&n); ^ user.cpp:42:48: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(j=1;j<=n;++j) fscanf(fin, "%hd",&v[i][j]); ^ user.cpp:44:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%hd",&k); ^ user.cpp:45:44: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(i=1;i<=k;++i) fscanf(fin, "%hd",&c[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms308kbOKAY!10
20ms304kbOKAY!10
30ms304kbOKAY!10
40ms312kbOKAY!10
50ms312kbOKAY!10
60ms316kbOKAY!10
70ms320kbOKAY!10
80ms316kbOKAY!10
90ms324kbOKAY!10
100msDepăşitMemory limit exceeded.0
Punctaj total90

Ceva nu functioneaza?