Borderou de evaluare (job #1321217)

Utilizator claudiu.gatinaFMI Claudiu Gatina claudiu.gatina Data 18 ianuarie 2015 20:59:47
Problema Arbori de intervale Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void afisare(nod*)’: user.cpp:48:27: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(a<=p->left->xright && p->left->xright<=b || a<=p->left->xleft && p->left->xleft<=b) ^ user.cpp:50:27: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] if(a<=p->right->xleft && p->right->xleft<=b || a<=p->right->xright && p->right->xright<=b) ^ user.cpp: In function ‘int main()’: user.cpp:79:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d ", &v[i]); ^ user.cpp:84:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] scanf("%d %d %d ", &op, &a, &b); ^ user.cpp:84:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:91:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n", mx); ^ user.cpp:75:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("arbint.in", "r", stdin); ^ user.cpp:76:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("arbint.out", "w", stdout); ^ user.cpp:77:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d ", &n, &m); ^ user.cpp:79:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &v[i]); ^ user.cpp:84:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d ", &op, &a, &b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms260kbIncorect00
28ms280kbIncorect00
312ms404kbIncorect00
436ms620kbIncorect00
560ms5188kbIncorect00
676ms6592kbIncorect00
7216ms7296kbOK10
8148ms6316kbIncorect0
9148ms6944kbIncorect0
10156ms7296kbIncorect0
Punctaj total0

Ceva nu functioneaza?