0_0_18145949_28761.cpp: In function 'pi query(int, int)':
0_0_18145949_28761.cpp:48:66: error: 'P' was not declared in this scope
else if (t.fst == s[x][y].fst) t.sec += s[x][y].sec, t.sec %= P;
^
0_0_18145949_28761.cpp: In function 'void update(int, int, pi)':
0_0_18145949_28761.cpp:58:72: error: 'P' was not declared in this scope
else if (t.fst == s[x][y].fst) s[x][y].sec += t.sec, s[x][y].sec %= P;
^
|