0_0_25824231_6041.cpp: In function 'int main()': 0_0_25824231_6041.cpp:47:9: error: 'res' was not declared in this scope if(res[j-1]==0) ^