Borderou de evaluare (job #1231473)

Utilizator BFlorin93Balint Florin-Lorand BFlorin93 Data 20 septembrie 2014 19:17:59
Problema Datorii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:73:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘char*’ [-Wformat=] fscanf(infile,"%d",&bit); ^ user.cpp:78:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] fscanf(infile,"%d%d",day,ammount); ^ user.cpp:78:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘int’ [-Wformat=] user.cpp:86:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] fscanf(infile,"%d%d",dayFrom,toDay); ^ user.cpp:86:46: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘int’ [-Wformat=] user.cpp:51:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(infile,"%d",&n); ^ user.cpp:52:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(infile,"%d",&m); ^ user.cpp:64:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(infile,"%d",&index); ^ user.cpp:73:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(infile,"%d",&bit); ^ user.cpp:78:45: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(infile,"%d%d",day,ammount); ^ user.cpp:86:47: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(infile,"%d%d",dayFrom,toDay); ^ user.cpp:78:45: warning: ‘day’ may be used uninitialized in this function [-Wmaybe-uninitialized] fscanf(infile,"%d%d",day,ammount); ^ user.cpp:78:45: warning: ‘ammount’ may be used uninitialized in this function [-Wmaybe-uninitialized] user.cpp:86:47: warning: ‘dayFrom’ may be used uninitialized in this function [-Wmaybe-uninitialized] fscanf(infile,"%d%d",dayFrom,toDay); ^ user.cpp:86:47: warning: ‘toDay’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms456kbKilled by signal 11(SIGSEGV).0
24ms456kbKilled by signal 11(SIGSEGV).0
34ms456kbKilled by signal 11(SIGSEGV).0
44ms452kbKilled by signal 11(SIGSEGV).0
54ms456kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?