Borderou de evaluare (job #1443760)

Utilizator adina0822Ciubotaru Adina-Maria adina0822 Data 28 mai 2015 16:50:37
Problema Reguli Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:28:25: 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:28:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:32:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%d",&y); ^ user.cpp:43:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%d\n",i); ^ user.cpp:44:44: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] for(x=1;x<=i; x++) fprintf(g,"%d\n",s[x]); ^ user.cpp:27:24: warning: unused variable ‘nr’ [-Wunused-variable] long long int i,x,y,nr; ^ user.cpp:28:26: 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:32:25: 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
116ms732kbIncorect0
260ms1828kbIncorect0
3124ms4672kbIncorect0
4256ms8068kbIncorect0
540ms1520kbIncorect0
624ms1044kbIncorect0
744ms1672kbIncorect0
80ms340kbIncorect0
90ms328kbOK10
100ms260kbIncorect0
Punctaj total10

Ceva nu functioneaza?