Problem | lunchbox |
---|---|
User | Quackadodo110411 |
Submission Time | 2024-04-27 10:49:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:7:21: error: ‘N’ was not declared in this scope
7 | int remaining = N;
| ^
lunchbox.cpp:8:19: error: ‘k’ was not declared in this scope; did you mean ‘ki’?
8 | for (int ki : k) {
| ^
| ki
lunchbox.cpp: At global scope:
lunchbox.cpp:20:10: error: ‘cin’ in namespace ‘std’ does not name a type
20 | std::cin >> N >> m;
| ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from lunchbox.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
lunchbox.cpp:22:5: error: expected unqualified-id before ‘for’
22 | for (int i = 0; i < m; i++) {
| ^~~
lunchbox.cpp:22:21: error: ‘i’ does not name a