Borderou de evaluare (job #1268572)

Utilizator fluture.godlikeGafton Mihnea Alexandru fluture.godlike Data 21 noiembrie 2014 01:51:00
Problema Subsir crescator maximal Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 5

Raport evaluator

Compilare: user.cpp: In function ‘void afisare(int)’: user.cpp:14:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] fprintf(fout, "%d ", v[a]); ^ user.cpp: In function ‘int main()’: user.cpp:23:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] for(int i =0; i< n; i++) fscanf(fin, "%d", &v[i]); ^ user.cpp:20: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:23:54: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i =0; i< n; i++) fscanf(fin, "%d", &v[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms260kbLungime incorecta!00
28ms348kbSubsir incorect!55
30ms248kbLungime incorecta!00
40ms252kbLungime incorecta!00
50ms256kbLungime incorecta!00
68ms264kbLungime incorecta!00
712ms264kbLungime incorecta!00
8Depăşit700kbTime limit exceeded.00
9Depăşit800kbTime limit exceeded.0
10Depăşit696kbTime limit exceeded.0
Punctaj total5

Ceva nu functioneaza?