/in/foo.c:2:1: error: unknown type name 'using'
2 | using namespace std;
| ^~~~~
/in/foo.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
2 | using namespace std;
| ^~~
/in/foo.c: In function 'main':
/in/foo.c:6:9: error: 'cin' undeclared (first use in this function)
6 | cin>>m>>a>>k;
| ^~~
/in/foo.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:11:9: error: 'cout' undeclared (first use in this function)
11 | cout << fixed << setprecision(2) <<s<< endl;
| ^~~~
/in/foo.c:11:17: error: 'fixed' undeclared (first use in this function)
11 | cout << fixed << setprecision(2) <<s<< endl;
| ^~~~~
/in/foo.c:11:26: warning: implicit declaration of function 'setprecision' [-Wimplicit-function-declaration]
11 | cout << fixed << setprecision(2) <<s<< endl;
| ^~~~~~~~~~~~
/in/foo.c:11:48: error: 'endl' undeclared (first use in this function)
11 | cout << fixed << setprecision(2) <<s<< endl;
| ^~~~