| Problem | paint |
|---|---|
| User | KJF |
| Submission Time | 2026-02-18 22:46:19 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
paint.cpp: In function ‘int main()’:
paint.cpp:18:7: error: no match for ‘operator[]’ (operand types are ‘std::multimap<int, int>’ and ‘int’)
18 | incs[num] = i;
| ^
paint.cpp:25:20: error: ‘begin’ was not declared in this scope
25 | for (int index : indices) {
| ^~~~~~~
paint.cpp:25:20: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from paint.cpp:4:
/usr/include/c++/9/valarray:1224:5: note: ‘std::begin’
1224 | begin(const valarray<_Tp>& __va)
| ^~~~~
In file included from /usr/include/c++/9/filesystem:38,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:129,
from paint.cpp:4:
/usr/include/c++/9/bits/fs_dir.h:516:3: note: ‘std::filesystem::__cxx11::begin’
516 | begin(recursive_directory_iterator __iter) noexcept
| ^~~~~
paint.