Borderou de evaluare (job #1354313)

Utilizator Alex_dudeDudescu Alexandru Alex_dude Data 21 februarie 2015 19:13:12
Problema Por Costel si Azerah Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:19:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f1,"%ld",&n); ^ user.cpp:22:27: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f1,"%ld",&x);ok=0; ^ user.cpp:23:47: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] for(j=1;j<=x;j++){fscanf(f1,"%ld",&aux);if(ok!=1&&aux%2==1)ok=1;} ^ user.cpp:26:29: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(f2,"%ld\n",x); ^ user.cpp: In function ‘long long int exp(long long int, long long int)’: user.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:19:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f1,"%ld",&n); ^ user.cpp:22:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f1,"%ld",&x);ok=0; ^ user.cpp:23:48: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(j=1;j<=x;j++){fscanf(f1,"%ld",&aux);if(ok!=1&&aux%2==1)ok=1;} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1244ms264kbOK100
Punctaj total100

Ceva nu functioneaza?