Borderou de evaluare (job #1480001)

Utilizator heracleRadu Muntean heracle Data 1 septembrie 2015 20:43:31
Problema Lanterna Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘void make_graf()’: user.cpp:59:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0; j<init[i].size(); j++) ^ user.cpp: In function ‘int main()’: user.cpp:136:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘bool*’ [-Wformat=] fscanf(in,"%d",&prd[i]); ^ user.cpp:146:31: warning: narrowing conversion of ‘b’ from ‘int’ to ‘unsigned char’ inside { } [-Wnarrowing] init[a].push_back(tipe{b,t,w}); ^ user.cpp:146:31: warning: narrowing conversion of ‘t’ from ‘int’ to ‘unsigned char’ inside { } [-Wnarrowing] user.cpp:146:31: warning: narrowing conversion of ‘w’ from ‘int’ to ‘short unsigned int’ inside { } [-Wnarrowing] user.cpp:147:31: warning: narrowing conversion of ‘a’ from ‘int’ to ‘unsigned char’ inside { } [-Wnarrowing] init[b].push_back(tipe{a,t,w}); ^ user.cpp:147:31: warning: narrowing conversion of ‘t’ from ‘int’ to ‘unsigned char’ inside { } [-Wnarrowing] user.cpp:147:31: warning: narrowing conversion of ‘w’ from ‘int’ to ‘short unsigned int’ inside { } [-Wnarrowing] user.cpp:132:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d%d",&n,&k); ^ user.cpp:136:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",&prd[i]); ^ user.cpp:139:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",&m); ^ user.cpp:145:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d%d%d%d",&a,&b,&t,&w); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
196ms1796kbOK10
284ms6020kbOK10
364ms6036kbOK10
484ms3900kbOK10
592ms6212kbOK10
6Depăşit5804kbTime limit exceeded.0
7Depăşit3356kbTime limit exceeded.0
84ms1820kbOK10
90ms1072kbOK10
1012ms1416kbOK10
Punctaj total80

Ceva nu functioneaza?