Problem | card |
---|---|
User | Hoang |
Submission Time | 2023-02-14 21:56:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
card.cpp:6:5: error: ‘int index’ redeclared as different kind of entity
6 | int index = 2;
| ^~~~~
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 card.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
| ^~~~~
card.cpp: In function ‘int main()’:
card.cpp:13:24: error: invalid types ‘char [100001][<unresolved overloaded function type>]’ for array subscript
13 | while (choice[index] != '.')
| ^
card.cpp:15:23: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
15 | index = index + 1;
| ~~~~~~^~~
card.cpp:16:28: error: invalid types ‘char