Borderou de evaluare (job #1620370)

Utilizator Andrei2001Andrei Parvulescu Andrei2001 Data 29 februarie 2016 08:48:18
Problema Expresie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:9:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d",&n); ^ user.cpp:10:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d",&v[1]); ^ user.cpp:12:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d",&v[2]); ^ user.cpp:19:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d",&v[i]); ^ user.cpp:30:21: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%d",s); ^ user.cpp:9:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&n); ^ user.cpp:10:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&v[1]); ^ user.cpp:12:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&v[2]); ^ user.cpp:19:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&v[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms440kbIncorect0
20ms440kbOK10
30ms440kbOK10
40ms440kbOK10
50ms444kbIncorect0
60ms436kbOK10
70ms440kbIncorect0
80ms436kbIncorect0
90ms436kbOK10
100ms440kbOK10
Punctaj total60

Ceva nu functioneaza?