prog.cpp: In function ‘int main()’:
prog.cpp:7:10: error: invalid operands of types ‘int [500]’ and ‘int’ to binary ‘operator%’
if (n%a==3)
~^~
prog.cpp:8:11: error: unable to find string literal operator ‘operator""endl’ with ‘const char [4]’, ‘long unsigned int’ arguments
cout<<"TAK"endl;
^~~~~~~~~