Borderou de evaluare (job #1279244)

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

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:12:12: warning: variable ‘i’ set but not used [-Wunused-but-set-variable] int n, i, j, i1, i2; ^ user.cpp:13:46: warning: variable ‘p1’ set but not used [-Wunused-but-set-variable] long long minim = 1000000000000, s1, s3, p1, p2; ^ user.cpp:13:50: warning: variable ‘p2’ set but not used [-Wunused-but-set-variable] long long minim = 1000000000000, s1, s3, p1, p2; ^ 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:98:38: warning: ‘i2’ may be used uninitialized in this function [-Wmaybe-uninitialized] fprintf(fout, "%d %d", i1, i2 - 1); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms452kbOK10
20ms448kbOK10
30ms456kbOK10
40ms452kbOK10
524ms840kbOK10
624ms844kbOK10
724ms840kbIncorect0
8248ms4352kbOK10
9228ms4348kbOK10
10252ms4352kbIncorect0
Punctaj total80

Ceva nu functioneaza?