Borderou de evaluare (job #1279227)

Utilizator jul123Iulia Duta jul123 Data 29 noiembrie 2014 22:35:11
Problema 3secv Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:18:34: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf(fin, "%lld", &a[i]); ^ user.cpp:80:11: warning: statement has no effect [-Wunused-value] for(i ; s != p2 && s != stotal - p1 - p2 && i < n; ++i) ^ user.cpp:14:26: 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:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%lld", &a[i]); ^ user.cpp:80:41: warning: ‘p2’ may be used uninitialized in this function [-Wmaybe-uninitialized] for(i ; s != p2 && s != stotal - p1 - p2 && i < n; ++i) ^ user.cpp:73:5: warning: ‘p1’ may be used uninitialized in this function [-Wmaybe-uninitialized] for(i = 0; s != p1 && i < n; ++i) { ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms452kbOK10
20ms452kbIncorect0
30ms456kbIncorect0
40ms456kbIncorect0
524ms844kbIncorect0
624ms844kbOK10
724ms840kbOK10
8228ms4356kbIncorect0
9216ms4360kbIncorect0
10248ms4356kbOK10
Punctaj total40

Ceva nu functioneaza?