Borderou de evaluare (job #1279034)

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

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:68:11: warning: statement has no effect [-Wunused-value] for(i ; s != p2 && s != stotal - p1 - p2; ++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:68:41: warning: ‘p2’ may be used uninitialized in this function [-Wmaybe-uninitialized] for(i ; s != p2 && s != stotal - p1 - p2; ++i) ^ user.cpp:61:5: warning: ‘p1’ may be used uninitialized in this function [-Wmaybe-uninitialized] for(i = 0; s != p1; ++i) { ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms448kbOK10
28ms448kbOK10
38ms452kbIncorect0
48ms452kbIncorect0
528ms840kbIncorect0
636ms840kbOK10
732ms844kbIncorect0
8240ms4352kbOK10
9220ms4348kbOK10
10248ms4356kbOK10
Punctaj total60

Ceva nu functioneaza?