Borderou de evaluare (job #1285629)

Utilizator Emil64Emil Centiu Emil64 Data 7 decembrie 2014 11:17:14
Problema Noname 3 Status done
Runda Algoritmiada 2015 - Runda 1, Juniori Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:8:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d",&n,&s); ^ user.cpp:8:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:16:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] {printf("%d ",v-i);r-=(v-i);} ^ user.cpp:17:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d ",v);r-=v; ^ user.cpp:19:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] {printf("%d ",v+i);r-=(v+i);} ^ user.cpp:20:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d\n",r); ^ user.cpp:28:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] {printf("%d ",v-i);r-=(v-i);} ^ user.cpp:31:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] {printf("%d ",v+i);r-=(v+i);} ^ user.cpp:32:24: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d\n",r); ^ user.cpp:5:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("noname3.in","r",stdin); ^ user.cpp:6:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("noname3.out","w",stdout); ^ user.cpp:8:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&s); ^
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms244kbOK1010
20ms236kbIncorect00
30ms240kbIncorect00
40ms236kbIncorect00
50ms240kbIncorect00
60ms236kbOK100
70ms236kbOK10
80ms240kbIncorect0
90ms236kbIncorect00
10Depăşit240kbTime limit exceeded.00
Punctaj total10

Ceva nu functioneaza?