Borderou de evaluare (job #2858688)

Utilizator cdenisCovei Denis cdenis Data 28 februarie 2022 11:08:56
Problema Cartite Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:26:1: error: 'unordered_map' does not name a type 26 | unordered_map < T > gal; | ^~~~~~~~~~~~~ main.cpp: In function 'void DFS(int, int)': main.cpp:30:8: error: 'gal' was not declared in this scope; did you mean 'val'? 30 | if(gal[{x,y}]==1) | ^~~ | val main.cpp:32:13: error: 'k' was not declared in this scope 32 | ret=k; | ^ main.cpp:36:24: error: expected ']' before ')' token 36 | if(mat[x+di1[k])[y+dj1[k]]!==0) | ^ | ] main.cpp:36:27: error: expected ',' before '+' token 36 | if(mat[x+di1[k])[y+dj1[k]]!==0) | ^ | , main.cpp:36:27: error: expected identifier before '+' token main.cpp: In lambda function: main.cpp:36:35: error: expected '{' before '!=' token 36 | if(mat[x+di1[k])[y+dj1[k]]!==0) | ^~ main.cpp: In function 'void DFS(int, int)': main.cpp:36:37: error: expected primary-expression before '=' token 36 | if(mat[x+di1[k])[y+dj1[k]]!==0) | ^ main.cpp: In function 'void afisare(int, int)': main.cpp:47:21: error: expected ';' before '}' token 47 | fout << x << " " | ^ | ; 48 | } | ~ main.cpp: In function 'int main()': main.cpp:86:9: error: 'gal' was not declared in this scope; did you mean 'val'? 86 | gal[{x,y}]=1; | ^~~ | val Non zero exit status: 1

Ceva nu functioneaza?