Main.cc: In function 'int main()':
Main.cc:11:20: error: 'q' was not declared in this scope
printf("%.3lf",q);
^
Main.cc:12:25: error: invalid operands of types 'int' and 'double' to binary 'operator%'
cout<<39/a<<' '<<39%a<