Borderou de evaluare (job #3143506)

Utilizator Andreir667Radulescu Andrei-Catalin Andreir667 Data 30 iulie 2023 18:56:48
Problema Immortal Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void bt(int)': main.cpp:41:25: warning: unused variable 'xx' [-Wunused-variable] 41 | int xx = x + dx[j], yy = y + dy[j]; | ^~ main.cpp:41:41: warning: unused variable 'yy' [-Wunused-variable] 41 | int xx = x + dx[j], yy = y + dy[j]; | ^~ main.cpp:39:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 39 | if (inmat(x, y) and mat[x][y]) | ^~ main.cpp:42:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 42 | if (inmat(xx, yy) and !mat[xx][yy]) | ^~ main.cpp:42:31: error: 'xx' was not declared in this scope; did you mean 'x'? 42 | if (inmat(xx, yy) and !mat[xx][yy]) | ^~ | x main.cpp:42:35: error: 'yy' was not declared in this scope; did you mean 'y'? 42 | if (inmat(xx, yy) and !mat[xx][yy]) | ^~ | y main.cpp:44:73: error: no match for 'operator=' (operand types are 'mutare' and '<brace-enclosed initializer list>') 44 | sol[k] = { poz[i-1].first,poz[i-1].second,xx,yy }; | ^ main.cpp:9:8: note: candidate: 'constexpr mutare& mutare::operator=(const mutare&)' 9 | struct mutare { | ^~~~~~ main.cpp:9:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const mutare&' main.cpp:9:8: note: candidate: 'constexpr mutare& mutare::operator=(mutare&&)' main.cpp:9:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'mutare&&' main.cpp: At global scope: main.cpp:57:1: error: expected declaration before '}' token 57 | } | ^ Non zero exit status: 1

Ceva nu functioneaza?