Problem lvm
User Logout
Submission Time 2023-11-20 07:01:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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:24:12: error: ‘class std::deque<long long int>’ has no member named ‘bottom’
24 | a = dq.bottom();
| ^~~~~~
lvm.cpp:48:4: error: expected unqualified-id before ‘}’ token
48 | }
| ^
lvm.cpp:51:8: error: no post-increment operator for type
51 | index++;
| ^~
lvm.cpp:53:10: error: expected ‘;’ before ‘}’ token
53 | return 0