Tiltai ir tuneliai
- [1] 2019-10-05 12:59 (100)
- [2] 2023-08-19 14:46 (0)
- [3] 2023-08-19 14:47 (0)
- [4] 2023-08-19 14:48 (100)
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. | result | time | message |
---|