Borderou de evaluare (job #1969568)

Utilizator pas.andreiPopovici Andrei-Sorin pas.andrei Data 18 aprilie 2017 15:32:02
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:4:13: warning: overflow in implicit constant conversion [-Woverflow] #define INF 0x3f3f3f3f ^ user.cpp:15:39: note: in expansion of macro ‘INF’ if(pos==0 && (x!=1 || y!=1)) return -INF; ^ user.cpp:4:13: warning: overflow in implicit constant conversion [-Woverflow] #define INF 0x3f3f3f3f ^ user.cpp:16:25: note: in expansion of macro ‘INF’ if(x<1 || y<1) return -INF; ^ user.cpp: In function ‘int main()’: user.cpp:37:8: warning: unused variable ‘t’ [-Wunused-variable] short t,i,nr,n,j,k; ^ user.cpp:37:12: warning: unused variable ‘nr’ [-Wunused-variable] short t,i,nr,n,j,k; ^ user.cpp:39: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:41: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:43: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:44: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
10ms484kbOKAY!10
20ms484kbOKAY!10
30ms488kbOKAY!10
40ms488kbOKAY!10
50ms492kbOKAY!10
60ms488kbOKAY!10
70ms500kbOKAY!10
80ms496kbOKAY!10
90ms500kbOKAY!10
100msDepăşitMemory limit exceeded.0
Punctaj total90

Ceva nu functioneaza?