0_0_33377014_11841.cpp: In function 'int sol()': 0_0_33377014_11841.cpp:160:34: error: 'p' was not declared in this scope for(int i=res-k+1; i<=res; i++) p ^ 0_0_33377014_11841.cpp:160:34: error: expected '}' at end of input