Main.cpp: In function 'int main()':
Main.cpp:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin>>n;
| ^~~
| std::cin
In file included from Main.cpp:1:
/usr/include/c++/13/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
Main.cpp:7:5: error: 'string' was not declared in this scope
7 | string komb[3]={"100", "010", "001"};
| ^~~~~~
Main.cpp:7:5: note: suggested alternatives:
In file included from /usr/include/c++/13/iosfwd:41,
from /usr/include/c++/13/ios:40,
from /usr/include/c++/13/ostream:40,
from /usr/include/c++/13/iostream:41:
/usr/include/c++/13/bits/stringfwd.h:77:33: note: 'std::string'
77 | typedef basic_string<char> string;
| ^~~~~~
In file included from /usr/include/c++/13/bits/locale_classes.h:40,
from /usr/include/c++/13/bits/ios_base.h:41,
from /usr/include/c++/13/ios:44:
/usr/include/c++/13/string:66:11: note: 'std::pmr::string'
66 | using string = basic_string<char>;
| ^~~~~~
Main.cpp:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
8 | cout<<"?"<<endl;
| ^~~~
| std::cout
/usr/include/c++/13/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
Main.cpp:8:16: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
8 | cout<<"?"<<endl;
| ^~~~
| std::endl
/usr/include/c++/13/ostream:735:5: note: 'std::endl' declared here
735 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
Main.cpp:55:23: error: 'komb' was not declared in this scope
55 | cout<<komb[i]<<endl;
| ^~~~