Borderou de evaluare (job #1266156)

Utilizator ZeBuGgErCasapu Andreas ZeBuGgEr Data 18 noiembrie 2014 13:18:11
Problema Procesor Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(fin,"%d",&n); ^ user.cpp:18:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(fin,"%d",&a[i][0]); ^ user.cpp:19:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(fin,"%d",&a[i][1]); ^ user.cpp:55:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(fout,"%d",left); ^ user.cpp:12:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&n); ^ user.cpp:18:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&a[i][0]); ^ user.cpp:19:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&a[i][1]); ^ user.cpp:53:21: warning: ‘pos’ may be used uninitialized in this function [-Wmaybe-uninitialized] a[pos][1]=-1; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms232kbKilled by signal 11(SIGSEGV).0
20ms252kbOK10
30ms232kbKilled by signal 11(SIGSEGV).0
40ms236kbKilled by signal 11(SIGSEGV).0
50ms240kbKilled by signal 11(SIGSEGV).0
64ms316kbKilled by signal 11(SIGSEGV).0
716ms496kbKilled by signal 11(SIGSEGV).0
832ms672kbKilled by signal 11(SIGSEGV).0
948ms936kbKilled by signal 11(SIGSEGV).0
1056ms1104kbKilled by signal 11(SIGSEGV).0
Punctaj total10

Ceva nu functioneaza?