Borderou de evaluare (job #1285959)

Utilizator VladVanguvangu constantin vladut VladVangu Data 7 decembrie 2014 11:52:04
Problema Perioada01 Status done
Runda Algoritmiada 2015 - Runda 1, Seniori Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:9:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&n); scanf("%d",&p);; ^ user.cpp:9:33: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&n); scanf("%d",&p);; ^ user.cpp:15:17: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&x);scanf("%d",&y); ^ user.cpp:15:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&x);scanf("%d",&y); ^ user.cpp:21:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d",c); ^ user.cpp:25:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] { scanf("%d",&x); ^ user.cpp:34:17: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d",c); ^ user.cpp:6:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("perioada01.in","r",stdin); ^ user.cpp:7:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("perioada01.out","w",stdout); ^ user.cpp:9:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); scanf("%d",&p);; ^ user.cpp:9:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); scanf("%d",&p);; ^ user.cpp:15:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x);scanf("%d",&y); ^ user.cpp:15:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x);scanf("%d",&y); ^ user.cpp:25:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] { scanf("%d",&x); ^
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms232kbIncorect00
20ms236kbOK10
30ms232kbOK100
40ms236kbIncorect0
50ms236kbIncorect00
60ms240kbOK10
70ms240kbIncorect00
80ms236kbIncorect0
90ms240kbIncorect0
10116ms240kbOK10
Punctaj total0

Ceva nu functioneaza?