Tiltai ir tuneliai

Taškai: 0

Compile: FAIL

tiltai.cpp:11:5: error: ‘int index’ redeclared as different kind of symbol int index; ^ In file included from /usr/include/c++/5/cstring:42:0, from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:48, from tiltai.cpp:1: /usr/include/string.h:477:1: note: previous declaration ‘const char* index(const char*, int)’ index (const char *__s, int __c) __THROW ^ tiltai.cpp: In function ‘int inser(std::__cxx11::string)’: tiltai.cpp:18:14: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘std::map<std::__cxx11::basic_string<char>, int>::mapped_type {aka int}’ buve[ka] = index; ^ tiltai.cpp:19:13: error: invalid types ‘node [200100][<unresolved overloaded function type>]’ for array subscript no[index].dydis = 1; ^ tiltai.cpp:20:13: error: invalid types ‘node [200100][<unresolved overloaded function type>]’ for array subscript no[index].parent = index; ^ tiltai.cpp:21:10: error: no post-increment operator for type index++; ^ tiltai.cpp:22:18: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator-’ return index-1; ^ tiltai.cpp: In function ‘int main()’: tiltai.cpp:50:11: error: overloaded function with no contextual type information index = 0; ^

nr.resulttimemessage