Problem restaurant
User LimCheeHann
Submission Time 2026-02-14 22:29:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

restaurant.cpp: In function ‘int main()’:
restaurant.cpp:5:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin >> N >> M >> S;
| ^~~
| std::cin
In file included from restaurant.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
restaurant.cpp:6:2: error: ‘vector’ was not declared in this scope
6 | vector<long long> mains,sides;
| ^~~~~~
restaurant.cpp:6:2: note: suggested alternatives:
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from restaurant.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:386:11: note: ‘std::vector’
386 | class