Borderou de evaluare (job #3266116)

Utilizator DasapSapunaru Daniel Dasap Data 5 ianuarie 2025 19:34:19
Problema Barbar Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 20

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:10:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 10 | for(i=1;i<=d;i++)v[drg[i].x][drg[i].y]=-1;dr=min(v[x1][y1],v[x2][y2])-1;while(st<=dr){ok=1;mij=(st+dr)/2;memset(v,0,sizeof(v));q.push({x1,y1});while(!q.empty()&&lee[x2][y2]==0){x=q.front().x;y=q.front().y;q.pop(); | ^~~ main.cpp:10:43: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 10 | for(i=1;i<=d;i++)v[drg[i].x][drg[i].y]=-1;dr=min(v[x1][y1],v[x2][y2])-1;while(st<=dr){ok=1;mij=(st+dr)/2;memset(v,0,sizeof(v));q.push({x1,y1});while(!q.empty()&&lee[x2][y2]==0){x=q.front().x;y=q.front().y;q.pop(); | ^~ main.cpp:12:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 12 | if(!lee[x2][y2])ok=0;if(ok)st=mij+1,rsp=mij;else dr=mij-1;}fout<<rsp; | ^~ main.cpp:12:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 12 | if(!lee[x2][y2])ok=0;if(ok)st=mij+1,rsp=mij;else dr=mij-1;}fout<<rsp; | ^~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms4489kbOk!10
22ms4227kbOk!10
32ms4493kbWrong answer!0
40ms303kbWrong answer!0
53ms5017kbWrong answer!0
63ms4751kbWrong answer!0
75ms5275kbWrong answer!0
822ms7548kbKilled by Signal 110
911ms4431kbKilled by Signal 110
1012ms4734kbKilled by Signal 110
Punctaj total20

Ceva nu functioneaza?