0_0_36156280_18810.cpp:2:4: error: expected unqualified-id before 'if' if (match[v] == -1 || find(match[v])) ^ 0_0_36156280_18810.cpp:7:3: error: expected declaration before '}' token } ^