Borderou de evaluare (job #1242261)

Utilizator fluture.godlikeGafton Mihnea Alexandru fluture.godlike Data 14 octombrie 2014 10:21:23
Problema Expozitie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:8:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] fscanf(fin, "%d%d%d", &n, &d, &k); ^ user.cpp:8:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:8:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long int*’ [-Wformat=] user.cpp:24:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] else fprintf(fout, "%d", a[n-k*d-1][d-1]); ^ user.cpp:8:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d%d%d", &n, &d, &k); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms300kbIncorect0
20ms252kbIncorect0
30ms248kbOK10
40ms460kbIncorect0
50ms252kbOK10
60ms480kbIncorect0
70ms224kbKilled by signal 11(SIGSEGV).0
80ms288kbIncorect0
90ms224kbKilled by signal 11(SIGSEGV).0
100ms244kbOK10
Punctaj total30

Ceva nu functioneaza?