game.cpp:6:6: error: expected unqualified-id before 'not' token
bool not[1505];
^~~
game.cpp: In lambda function:
game.cpp:18:19: error: expected '{' before '=' token
if(st) not[u] = not[v] = true;
^
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:18:12: error: no match for 'operator!' (operand type is 'hasEdge(int, int)::<lambda()>')
if(st) not[u] = not[v] = true;
game.cpp:18:12: note: candidate: operator!(bool) <built-in>
game.cpp:18:12: note: no known conversion for argument 1 from 'hasEdge(int, int)::<lambda()>' to 'bool'
game.cpp: In lambda function:
game.cpp:18:28: error: expected '{' before '=' token
if(st) not[u] = not[v] = true;
^
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:18:21: error: no match for 'operator!' (operand type is 'hasEdge(int, int)::<lambda()>')
if(st) not[u] = not[v] = true;
game.cpp:18:21: note: candidate: operator!(bool) <built-in>
game.cpp:18:21: note: no known conversion for argument 1 from 'hasEdge(int, int)::<lambda()>' to 'bool'
game.cpp: In lambda function:
game.cpp:19:35: error: expected '{' before '==' token
if(S[u].size() == 1 && not[u] == false) {
^~
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:19:28: error: no match for 'operator!' (operand type is 'hasEdge(int, int)::<lambda()>')
if(S[u].size() == 1 && not[u] == false) {
game.cpp:19:28: note: candidate: operator!(bool) <built-in>
game.cpp:19:28: note: no known conversion for argument 1 from 'hasEdge(int, int)::<lambda()>' to 'bool'
game.cpp: In lambda function:
game.cpp:23:35: error: expected '{' before '==' token
if(S[v].size() == 1 && not[v] == false) {
^~
game.cpp: In function 'int hasEdge(int, int)':
game.cpp:23:28: error: no match for 'operator!' (operand type is 'hasEdge(int, int)::<lambda()>')
if(S[v].size() == 1 && not[v] == false) {
game.cpp:23:28: note: candidate: operator!(bool) <built-in>
game.cpp:23:28: note: no known conversion for argument 1 from 'hasEdge(int, int)::<lambda()>' to 'bool'