Borderou de evaluare (job #1321216)

Utilizator claudiu.gatinaFMI Claudiu Gatina claudiu.gatina Data 18 ianuarie 2015 20:59:10
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: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
10ms260kbFisier de iesire lipsa00
24ms280kbFisier de iesire lipsa00
312ms404kbFisier de iesire lipsa00
436ms616kbFisier de iesire lipsa00
560ms5180kbFisier de iesire lipsa00
676ms6588kbFisier de iesire lipsa00
7216ms7288kbFisier de iesire lipsa0
8148ms6308kbFisier de iesire lipsa0
9148ms6944kbFisier de iesire lipsa0
10152ms7292kbFisier de iesire lipsa0
Punctaj total0

Ceva nu functioneaza?