xoranges.cpp:5:1: error: 'vector' does not name a type
5 | vector<int> odd;
| ^~~~~~
xoranges.cpp:6:1: error: 'vector' does not name a type
6 | vector<int> eve;
| ^~~~~~
xoranges.cpp:7:1: error: 'vector' does not name a type
7 | vector<int> val;
| ^~~~~~
xoranges.cpp: In function 'void fun()':
xoranges.cpp:13:19: error: 'val' was not declared in this scope
13 | xo = xo ^ val[i];
| ^~~
xoranges.cpp:14:9: error: 'eve' was not declared in this scope
14 | eve[i] = xo;
| ^~~
xoranges.cpp:18:19: error: 'val' was not declared in this scope
18 | xo = xo ^ val[i];
| ^~~
xoranges.cpp:19:9: error: 'odd' was not declared in this scope
19 | odd[i] = xo;
| ^~~
xoranges.cpp: In function 'int main()':
xoranges.cpp:26:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
26 | cin >> n;
| ^~~
| std::cin
In file included from xoranges.cpp:1:
/usr/include/c++/10/iostream:60:18: note: 'std::cin' declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
xoranges.cpp:28:5: error: 'odd' was not declared in this scope
28 | odd.resize(n);
| ^~~
xoranges.cpp:29:5: error: 'eve' was not declared in this scope
29 | eve.resize(n);
| ^~~
xoranges.cpp:33:9: error: 'val' was not declared in this scope
33 | val.push_back(x);
| ^~~
xoranges.cpp:44:13: error: 'val' was not declared in this scope
44 | val[b - 1] = c;
| ^~~
xoranges.cpp:49:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
49 | cout << 0 << endl;
| ^~~~
| std::cout
In file included from xoranges.cpp:1:
/usr/include/c++/10/iostream:61:18: note: 'std::cout' declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
xoranges.cpp:49:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
49 | cout << 0 << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/10/iostream:39,
from xoranges.cpp:1:
/usr/include/c++/10/ostream:681:5: note: 'std::endl' declared here
681 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
xoranges.cpp:53:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
53 | cout << eve[(c - 1) ] << endl;
| ^~~~
| std::cout
In file included from xoranges.cpp:1:
/usr/include/c++/10/iostream:61:18: note: 'std::cout' declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
xoranges.cpp:53:46: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
53 | cout << eve[(c - 1) ] << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/10/iostream:39,
from xoranges.cpp:1:
/usr/include/c++/10/ostream:681:5: note: 'std::endl' declared here
681 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
xoranges.cpp:58:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
58 | cout << x << endl;
| ^~~~
| std::cout
In file included from xoranges.cpp:1:
/usr/include/c++/10/iostream:61:18: note: 'std::cout' declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
xoranges.cpp:58:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
58 | cout << x << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/10/iostream:39,
from xoranges.cpp:1:
/usr/include/c++/10/ostream:681:5: note: 'std::endl' declared here
681 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
xoranges.cpp:62:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
62 | cout << odd[(c - 1)] << endl;
| ^~~~
| std::cout
In file included from xoranges.cpp:1:
/usr/include/c++/10/iostream:61:18: note: 'std::cout' declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
xoranges.cpp:62:45: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
62 | cout << odd[(c - 1)] << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/10/iostream:39,
from xoranges.cpp:1:
/usr/include/c++/10/ostream:681:5: note: 'std::endl' declared here
681 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
xoranges.cpp:65:21: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
65 | cout << x << endl;
| ^~~~
| std::cout
In file included from xoranges.cpp:1:
/usr/include/c++/10/iostream:61:18: note: 'std::cout' declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
xoranges.cpp:65:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
65 | cout << x << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/10/iostream:39,
from xoranges.cpp:1:
/usr/include/c++/10/ostream:681:5: note: 'std::endl' declared here
681 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~