Borderou de evaluare (job #1366321)

Utilizator sirbu11Sirbu Claudiu Cosmin sirbu11 Data 28 februarie 2015 22:39:54
Problema Secventa 3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘float*’ [-Wformat=] fscanf(f, "%d", &a[i]); ^ user.cpp:17:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘float*’ [-Wformat=] fscanf(f, "%d", &b[i]); ^ user.cpp:6:8: warning: unused variable ‘rez’ [-Wunused-variable] float rez,s1,s2,max = 0,a[30002], b[30002]; ^ user.cpp:11:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d%d%d", &n, &l, &u); ^ user.cpp:14:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &a[i]); ^ user.cpp:17:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &b[i]); ^ user.cpp:26:13: warning: ‘poz’ may be used uninitialized in this function [-Wmaybe-uninitialized] s2 = b[poz]; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms292kbWrong answer!0
20ms288kbWrong answer!0
30ms296kbWrong answer!0
40ms312kbWrong answer!0
54ms332kbWrong answer!0
68ms364kbWrong answer!0
78ms396kbWrong answer!0
812ms444kbWrong answer!0
912ms476kbWrong answer!0
1016ms516kbOK!10
Punctaj total10

Ceva nu functioneaza?