prog.cpp: In function ‘int main()’:
prog.cpp:12:5: error: ‘cout’ was not declared in this scope
cout<<"x1="<<x1;
^~~~
prog.cpp:12:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
prog.cpp:3:1:
+#include <iostream>
using namespace std;
prog.cpp:12:5:
cout<<"x1="<<x1;
^~~~