| Problem | choosingcandies |
|---|---|
| User | XX |
| Submission Time | 2026-06-24 18:43:09 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
choosingcandies.cpp: In function ‘int main()’:
choosingcandies.cpp:5:10: error: expected initializer before ‘count’
5 | int n,k count = 0;
| ^~~~~
choosingcandies.cpp:6:14: error: ‘k’ was not declared in this scope
6 | cin >> n >> k;
| ^
choosingcandies.cpp:14:14: error: overloaded function with no contextual type information
14 | count += 1;
| ^
choosingcandies.cpp:18:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
18 | cout << count;
| ~~~~~^~~~~~~~
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/