Borderou de evaluare (job #2522778)

Utilizator serban.ionescuionescu serban mihai serban.ionescu Data 12 ianuarie 2020 22:54:57
Problema Elicoptere Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 40

Raport evaluator

Compilare: main.cpp: In function 'void parcurgere(int)': main.cpp:21:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=insule[nod].size();i++) ~^~~~~~~~~~~~~~~~~~~~ main.cpp:20:9: warning: unused variable 'yu' [-Wunused-variable] int yu=insule[1].size(); ^~ main.cpp: In function 'void parcurgere1(int)': main.cpp:33:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int ii=1;ii<=insule[nod1].size();ii++) ~~^~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:72:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if((pctx>=v[alt][k+1].x&&pctx<=v[alt][k].x||pctx<=v[alt][k+1].x&&pctx>=v[alt][k].x)&&v[alt][k+1].x!=v[alt][k].x) ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ main.cpp:72:21: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if((pctx>=v[alt][k+1].x&&pctx<=v[alt][k].x||pctx<=v[alt][k+1].x&&pctx>=v[alt][k].x)&&v[alt][k+1].x!=v[alt][k].x) ^~ main.cpp:77:25: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' if(nouadist<maxi&&nouadist!=0) ^~ main.cpp:72:23: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if((pctx>=v[alt][k+1].x&&pctx<=v[alt][k].x||pctx<=v[alt][k+1].x&&pctx>=v[alt][k].x)&&v[alt][k+1].x!=v[alt][k].x) ^ main.cpp:82:44: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if((pcty>=v[alt][k+1].y&&pcty<=v[alt][k].y||pcty<=v[alt][k+1].y&&pcty>=v[alt][k].y)&&v[alt][k+1].y!=v[alt][k].y) ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ main.cpp:82:21: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if((pcty>=v[alt][k+1].y&&pcty<=v[alt][k].y||pcty<=v[alt][k+1].y&&pcty>=v[alt][k].y)&&v[alt][k+1].y!=v[alt][k].y) ^~ main.cpp:87:25: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' if(nouadist<maxi&&nouadist!=0) ^~ main.cpp:82:23: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if((pcty>=v[alt][k+1].y&&pcty<=v[alt][k].y||pcty<=v[alt][k+1].y&&pcty>=v[alt][k].y)&&v[alt][k+1].y!=v[alt][k].y) ^ main.cpp:87:25: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if(nouadist<maxi&&nouadist!=0) ^~ main.cpp:89:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' int ciudat=3; ^~~ main.cpp:66:28: warning: unused variable 'x1' [-Wunused-variable] double x1=v[alt][k].x; ^~ main.cpp:67:28: warning: unused variable 'y1' [-Wunused-variable] double y1=v[alt][k].y; ^~ main.cpp:68:28: warning: unused variable 'x2' [-Wunused-variable] double x2=v[alt][k+1].x;
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms786kbNumar de elicoptere gresit.0
24ms786kbNumar de elicoptere gresit.0
34ms786kbNumar de elicoptere gresit.0
44ms786kbNumar de elicoptere gresit.0
55ms917kbNumar de elicoptere gresit.0
65ms917kbNumar de elicoptere gresit.0
76ms917kbNumar de elicoptere gresit.0
87ms917kbNumar de elicoptere gresit.0
97ms917kbNumar de elicoptere gresit.0
108ms917kbNumar de elicoptere gresit.0
114ms786kbOK.4
124ms786kbOK.4
134ms786kbOK.4
144ms786kbOK.4
155ms786kbOK.4
165ms917kbOK.4
176ms917kbOK.4
187ms917kbOK.4
197ms917kbOK.4
208ms917kbOK.4
214ms786kbSuma lungimilor rutelor gresita.0
224ms786kbSuma lungimilor rutelor gresita.0
234ms786kbSuma lungimilor rutelor gresita.0
244ms786kbSuma lungimilor rutelor gresita.0
255ms917kbSuma lungimilor rutelor gresita.0
265ms917kbSuma lungimilor rutelor gresita.0
276ms917kbSuma lungimilor rutelor gresita.0
287ms917kbSuma lungimilor rutelor gresita.0
297ms917kbSuma lungimilor rutelor gresita.0
308ms917kbSuma lungimilor rutelor gresita.0
Punctaj total40

Ceva nu functioneaza?