Borderou de evaluare (job #1800188)

Utilizator Valentin0709Datcu George Valentin Valentin0709 Data 7 noiembrie 2016 15:14:08
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:12:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d%d",&n,&x); ^ user.cpp:12:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:14:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d",&y); ^ user.cpp:24:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%d\n",n-1-um[n-1]); ^ user.cpp:25:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] for(i=0;i<n-1-um[n-1];i++) fprintf(g,"%d\n",v[i]); ^ user.cpp:12:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d%d",&n,&x); ^ user.cpp:14:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms752kbOK10
244ms1844kbIncorect0
3132ms4696kbIncorect0
4264ms8084kbIncorect0
540ms1536kbIncorect0
624ms1064kbIncorect0
728ms1684kbOK10
80ms356kbIncorect0
90ms348kbOK10
100ms280kbOK10
Punctaj total40

Ceva nu functioneaza?