prog.cpp: In function ‘int main()’:
prog.cpp:8:9: error: ‘setprecision’ is not a member of ‘std’
cout << std::setprecision(2)<<x;
^~~
prog.cpp:10:9: error: ‘setprecision’ is not a member of ‘std’
cout << std::setprecision(2)<<y;
^~~
prog.cpp:11:9: error: ‘setprecision’ is not a member of ‘std’
cout << std::setprecision(0)<<y ;
^~~