Borderou de evaluare (job #1570963)

Utilizator FrequeAlex Iordachescu Freque Data 16 ianuarie 2016 22:33:21
Problema Expresie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:16:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(fin, "%d", &n); ^ user.cpp:20:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(fin, "%d", &v[i]); ^ user.cpp:39:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(fout, "%d", maxx); ^ user.cpp:16: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:20:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d", &v[i]); ^ user.cpp:12:33: warning: ‘maxx’ may be used uninitialized in this function [-Wmaybe-uninitialized] long v[izbanda], suma=0, s, maxx; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit388kbTime limit exceeded.0
2Depăşit388kbTime limit exceeded.0
3Depăşit388kbTime limit exceeded.0
4Depăşit392kbTime limit exceeded.0
5Depăşit388kbTime limit exceeded.0
6Depăşit392kbTime limit exceeded.0
70ms388kbKilled by signal 11(SIGSEGV).0
8Depăşit396kbTime limit exceeded.0
90ms388kbKilled by signal 11(SIGSEGV).0
10Depăşit396kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?