0_0_23165547_2964.cpp: In function 'void solve1(int, int)':
0_0_23165547_2964.cpp:40:22: error: 'j' was not declared in this scope
if(node[pos][j]) pos=node[pos][j];
^
0_0_23165547_2964.cpp: In function 'void solve2(int, int)':
0_0_23165547_2964.cpp:51:22: error: 'j' was not declared in this scope
if(node[pos][j]) pos=node[pos][j];
^
0_0_23165547_2964.cpp: In function 'int main()':
0_0_23165547_2964.cpp:77:38: error: invalid operands of types 'int [2]' and 'int [2]' to binary 'operator*'
ans += p[i][j]*r[i][j];
^
|