| Problem | applebaskets |
|---|---|
| User | PerihelionfromAphelion |
| Submission Time | 2026-08-11 21:43:14 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
applebaskets.cpp:10:26: error: expected ‘,’ or ‘...’ before ‘&’ token
10 | bool basket(const int v[]&, int i) {
| ^
applebaskets.cpp: In function ‘bool basket(const long long unsigned int*)’:
applebaskets.cpp:11:8: error: ‘i’ was not declared in this scope
11 | if (v[i] != 0) return true;
| ^
applebaskets.cpp: In function ‘int32_t main()’:
applebaskets.cpp:28:18: error: invalid conversion from ‘__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int>, long long unsigned int>::value_type’ {aka ‘long long unsigned int’} to ‘const long long unsigned int*’ [-fpermissive]
28 | if (basket(v[i])) {
| ^
| |
| __gnu_cxx::__alloc_traits<std::allocator<long long unsigned int>, long long unsigned int>::value_type {aka long long unsigned int}
applebaskets.cpp:10:23: note: initializing argument 1 of ‘bool