Problem | lvm |
---|---|
User | Logout |
Submission Time | 2023-11-20 07:04:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lvm.cpp:6:11: error: ‘long long int index’ redeclared as different kind of entity
6 | long long index, t;
| ^~~~~
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 lvm.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
| ^~~~~
lvm.cpp: In function ‘int main()’:
lvm.cpp:48:8: error: no post-increment operator for type
48 | index++;
| ^~