prog.cpp: In function ‘int main(int, char**)’:
prog.cpp:13:1: error: ‘cout’ was not declared in this scope
cout << "vvedi x" << endl;
^~~~
prog.cpp:13:1: note: suggested alternative:
In file included from prog.cpp:3:0:
/usr/include/c++/6/iostream:61:18: note: ‘std::cout’
extern ostream cout; /// Linked to standard output
^~~~
prog.cpp:13:22: error: ‘endl’ was not declared in this scope
cout << "vvedi x" << endl;
^~~~
prog.cpp:13:22: note: suggested alternative:
In file included from /usr/include/c++/6/iostream:39:0,
from prog.cpp:3:
/usr/include/c++/6/ostream:590:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^~~~
prog.cpp:14:1: error: ‘cin’ was not declared in this scope
cin>>x;
^~~
prog.cpp:14:1: note: suggested alternative:
In file included from prog.cpp:3:0:
/usr/include/c++/6/iostream:60:18: note: ‘std::cin’
extern istream cin; /// Linked to standard input
^~~
prog.cpp:22:1: error: expected initializer before ‘if’
if(x>y)max_xy=x;
^~
prog.cpp:23:1: error: ‘else’ without a previous ‘if’
else max_xy=y;
^~~~
prog.cpp:26:10: error: expected ‘;’ before ‘}’ token
{max_yz=y};
^
prog.cpp:27:1: error: ‘else’ without a previous ‘if’
else
^~~~
prog.cpp:28:10: error: expected ‘;’ before ‘}’ token
{max_yz=z};
^
prog.cpp:31:2: error: ‘g’ was not declared in this scope
{g= max_xy/ max_yz}
^
prog.cpp:33:2: error: ‘g’ was not declared in this scope
{g= max_yz/ max_yz}
^
prog.cpp:34:16: error: ‘g’ was not declared in this scope
cout << "g=" <<g<< endl;
^
prog.cpp:35:7: error: ‘getch’ was not declared in this scope
getch();
^