Borderou de evaluare (job #1630686)

Utilizator maria.sinteaMaria Sintea maria.sintea Data 5 martie 2016 10:45:57
Problema And Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:10:22: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld\n", &n); ^ user.cpp:11:21: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld ", &a); ^ user.cpp:16:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%ld ", &a); ^ user.cpp:17:15: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] if(b&a!=0) ^ user.cpp:27:28: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld", lungmax+1); ^ user.cpp:7:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("and.in","r",stdin); ^ user.cpp:8:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("and.out","w",stdout); ^ user.cpp:10:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld\n", &n); ^ user.cpp:11:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld ", &a); ^ user.cpp:16:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld ", &a); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbIncorect0
20ms264kbIncorect0
30ms264kbIncorect0
40ms260kbIncorect0
5Depăşit260kbTime limit exceeded.0
6Depăşit260kbTime limit exceeded.0
7Depăşit264kbTime limit exceeded.0
8Depăşit260kbTime limit exceeded.0
9Depăşit264kbTime limit exceeded.0
10Depăşit268kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?