Tiltai ir tuneliai

Taškai: 0

Compile: FAIL

tiltai.cpp:7:5: error: ‘int index’ redeclared as different kind of entity 7 | int index = 0; | ^~~~~ In file included from /usr/include/string.h:462, from /usr/include/c++/11/cstring:42, from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:48, from tiltai.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 | ^~~~~ tiltai.cpp: In function ‘int GetIndex(std::string&)’: tiltai.cpp:12:29: error: no post-increment operator for type 12 | indices[str] = index++; | ^~ tiltai.cpp:13:21: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’ 13 | return index-1; | ~~~~~^~

nr.resulttimemessage