Borderou de evaluare (job #3328883)

Utilizator fumfummititelu david fumfum Data 10 decembrie 2025 22:20:29
Problema Puteri Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void citire()': main.cpp:20:29: error: 'b' was not declared in this scope 20 | l[i][j]=b[i][j-1]+1; /// lungimea pe linii | ^ main.cpp: In function 'void fill(short int, short int)': main.cpp:30:8: error: 'struct std::pair<short int, short int>' has no member named 'push' 30 | st.push({i,j}); | ^~~~ main.cpp:37:15: error: 'struct std::pair<short int, short int>' has no member named 'empty' 37 | while(!st.empty()){ | ^~~~~ main.cpp:38:14: error: 'struct std::pair<short int, short int>' has no member named 'top' 38 | i=st.top().first; | ^~~ main.cpp:39:14: error: 'struct std::pair<short int, short int>' has no member named 'top' 39 | j=st.top().second | ^~~ main.cpp:44:22: error: expected ';' before 'if' 44 | y=j+dy[j] | ^ | ; 45 | if(a[x][y]==2){ | ~~ main.cpp:28:19: warning: unused variable 'p' [-Wunused-variable] 28 | short int x,y,p; | ^ main.cpp: In function 'void finish()': main.cpp:65:20: error: 'xd' was not declared in this scope; did you mean 'ld'? 65 | sl=xd-xs+1; | ^~ | ld main.cpp:65:23: error: 'xs' was not declared in this scope; did you mean 's'? 65 | sl=xd-xs+1; | ^~ | s main.cpp:66:20: error: 'yd' was not declared in this scope; did you mean 'ld'? 66 | sc=yd-ys+1; | ^~ | ld main.cpp:66:23: error: 'ys' was not declared in this scope; did you mean 's'? 66 | sc=yd-ys+1; | ^~ | s main.cpp:59:11: warning: unused variable 'i' [-Wunused-variable] 59 | short i,j,sl,sc; | ^ main.cpp:59:13: warning: unused variable 'j' [-Wunused-variable] 59 | short i,j,sl,sc; | ^ Non zero exit status: 1

Ceva nu functioneaza?