Problem catlunch
User newplayer
Submission Time 2024-02-20 23:22:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int32_t main()’:
catlunch.cpp:9:5: error: ‘ios_base’ has not been declared
9 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
catlunch.cpp:10:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
10 | cin.tie(NULL);
| ^~~
| std::cin
In file included from catlunch.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
catlunch.cpp:15:5: error: ‘vector’ was not declared in this scope
15 | vector<int> v(n);
| ^~~~~~
catlunch.cpp:15:5: note: suggested alternatives:
In file included from /usr/include/c++/9/vector:67,
from catlunch.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:386:11: note: ‘std::vector’
386 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
I