Borderou de evaluare (job #1273682)

Utilizator fluture.godlikeGafton Mihnea Alexandru fluture.godlike Data 22 noiembrie 2014 21:09:21
Problema Expresie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:9:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] fscanf(fin, "%d", &n); ^ user.cpp:11:53: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] for(int i =0; i< n; i++) fscanf(fin, "%d", &p[i]); ^ user.cpp:9: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:11: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", &p[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms248kbIncorect0
20ms244kbKilled by signal 11(SIGSEGV).0
30ms252kbIncorect0
40ms252kbKilled by signal 11(SIGSEGV).0
50ms248kbIncorect0
60ms248kbIncorect0
70ms252kbIncorect0
80ms252kbIncorect0
90ms252kbIncorect0
100ms252kbOK10
Punctaj total10

Ceva nu functioneaza?