Borderou de evaluare (job #2026968)

Utilizator xRoALexBirtoiu Alexandru xRoALex Data 25 septembrie 2017 14:11:55
Problema Reguli Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:13:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d",&n); ^ user.cpp:14:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d",&v[0]); ^ user.cpp:17:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d",&v[i]); ^ user.cpp:29:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%d\n",n-pi[n-1]); ^ user.cpp:32:31: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%d\n",s[i]); ^ user.cpp:13: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:14:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&v[0]); ^ user.cpp:17:33: 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
18ms976kbOK10
240ms2612kbIncorect0
3124ms6884kbIncorect0
4252ms11960kbIncorect0
540ms2144kbIncorect0
624ms1440kbIncorect0
728ms2376kbOK10
80ms376kbIncorect0
90ms364kbOK10
100ms264kbOK10
Punctaj total40

Ceva nu functioneaza?