0_0_38589391_12879.cpp: In function 'int main()': 0_0_38589391_12879.cpp:59:33: error: 'c' was not declared in this scope cout<<query(rot[c],1,n,a,b)<<endl; ^