Main.cc: In function 'int main()':
Main.cc:6:16: error: lvalue required as left operand of assignment
if(a%3==0&&a%5=0){
^
Main.cc:10:7: error: expected ';' before string constant
cout"cannot"<endl;
^
Main.cc:10:21: warning: statement has no effect [-Wunused-value]
cout"cannot"<<endl;
^
Main.cc:4:8: warning: unused variable 'n' [-Wunused-variable]
int a,n;
^