Paieška platyn

Taškai: 0

Compile: FAIL

bfs.cpp: In function ‘int main()’: bfs.cpp:25:30: error: incompatible types in assignment of ‘int’ to ‘bool [a]’ 25 | for(int i=0; i<a; i++) ar=0; | ~~^~ bfs.cpp:35:19: error: no match for ‘operator[]’ (operand types are ‘bool [a]’ and ‘std::vector<int>’) 35 | if(!ar[c[x.k]][i]) | ^ bfs.cpp:38:31: error: expected ‘}’ before ‘]’ token 38 | q.push({c[x.k]][i], x.kiek+1}); | ~ ^ bfs.cpp:38:31: error: expected ‘)’ before ‘]’ token 38 | q.push({c[x.k]][i], x.kiek+1}); | ~ ^ | ) bfs.cpp:38:46: error: expected primary-expression before ‘)’ token 38 | q.push({c[x.k]][i], x.kiek+1}); | ^ bfs.cpp: At global scope: bfs.cpp:42:5: error: expected unqualified-id before ‘return’ 42 | return 0; | ^~~~~~ bfs.cpp:43:1: error: expected declaration before ‘}’ token 43 | } | ^

nr.resulttimemessage