Problem | pancake |
---|---|
User | dsyz |
Submission Time | 2024-01-09 14:06:09 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pancake.cpp:8:27: error: ‘std::map<std::vector<long long int>, long long int> index [9]’ redeclared as different kind of entity
8 | map<vector<ll>,ll> index[9];
| ^
In file included from /usr/include/string.h:432,
from /usr/include/c++/9/cstring:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:48,
from pancake.cpp:1:
/usr/include/strings.h:61:1: note: previous declaration ‘const char* index(const char*, int)’
61 | index (const char *__s, int __c) __THROW
| ^~~~~
pancake.cpp: In function ‘int main()’:
pancake.cpp:19:11: error: invalid types ‘<unresolved overloaded function type>[ll {aka long long int}]’ for array subscript
19 | index[N][pancakes] = cnt;
| ^
pancake.cpp:22:15: error: invalid types ‘<unresolved overloaded function type>[ll {aka long long int}]’ for array subscript