Main.cc: In function ‘int main()’:
Main.cc:6:11: error: expected primary-expression before ‘%’ token
scanf(%lf, &c);
^
Main.cc:6:12: error: ‘lf’ was not declared in this scope
scanf(%lf, &c);
^~
Main.cc:16:9: error: ‘k’ was not declared in this scope
k++;
^