Main.cc: In function ‘int main()’: Main.cc:14:13: error: ‘a’ was not declared in this scope if(cnt==k&&a%19==0) cout<<"YES"; ^