Borderou de evaluare (job #1279237)

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

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:86:11: warning: statement has no effect [-Wunused-value] for(i ; s != p2 && s != stotal - p1 - p2 && i < n; ++i) ^ user.cpp:26:9: warning: variable ‘ok’ set but not used [-Wunused-but-set-variable] int ok = 1; ^ 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:86: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:79: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
10ms440kbOK10
20ms464kbOK10
30ms468kbOK10
40ms460kbOK10
524ms848kbOK10
624ms832kbOK10
724ms856kbIncorect0
8Depăşit4328kbTime limit exceeded.0
9244ms4348kbOK10
10Depăşit4332kbTime limit exceeded.0
Punctaj total70

Ceva nu functioneaza?