Problem lunchbox
User wtnetlegend
Submission Time 2025-01-29 13:35:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp:2:17: error: ‘atd’ is not a namespace-name
2 | using namespace atd;
| ^~~
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:6:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin << boxes << schools;
| ^~~
| std::cin
In file included 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:6:9: error: ‘boxes’ was not declared in this scope
6 | cin << boxes << schools;
| ^~~~~
lunchbox.cpp:8:2: error: expected initializer before ‘cin’
8 | cin << ki
| ^~~
lunchbox.cpp:12:2: error: ‘else’ without a previous ‘if’
12 | else if (totalboxes > ki) {
| ^~~~
lunchbox.cpp:12:24: error: ‘ki’ was not declared in this scope
12 | else if (to