0_0_36632646_27602.cpp: In function 'int solve()': 0_0_36632646_27602.cpp:20:6: error: 'p' was not declared in this scope p[a[i]][j]++; ^