Kaimynų kaimynai
Taškai: 0
Compile: FAIL
kaimynu_kaimynai.cpp: In function ‘int main()’: kaimynu_kaimynai.cpp:29:16: error: no match for ‘operator[]’ (operand types are ‘std::vector<std::__cxx11::basic_string<char> > [a]’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}) 29 | VEC[finalboss][j]; | ^ kaimynu_kaimynai.cpp:30:34: error: no match for ‘operator[]’ (operand types are ‘std::vector<std::__cxx11::basic_string<char> > [a]’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}) 30 | for (int i=0; i < VEC[finalboss][j].size(); i ++){ | ^ kaimynu_kaimynai.cpp:31:52: error: no match for ‘operator[]’ (operand types are ‘std::vector<std::__cxx11::basic_string<char> > [a]’ and ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’}) 31 | if (VEC[sigma[finalboss]][i] == VEC[finalboss][j][i]]){ | ^ kaimynu_kaimynai.cpp:31:69: error: expected ‘)’ before ‘]’ token 31 | if (VEC[sigma[finalboss]][i] == VEC[finalboss][j][i]]){ | ~ ^ | ) kaimynu_kaimynai.cpp:31:69: error: expected primary-expression before ‘]’ token kaimynu_kaimynai.cpp:34:62: error: invalid types ‘int[int]’ for array subscript 34 | else if (VEC[finalboss[i]] != VEC[finalboss[j[i]]){ | ^ kaimynu_kaimynai.cpp:34:66: error: expected ‘]’ before ‘)’ token 34 | else if (VEC[finalboss[i]] != VEC[finalboss[j[i]]){ | ^ | ] kaimynu_kaimynai.cpp:36:47: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript 36 | KOKIEKURVAZMONES.push_back[i]; | ^ kaimynu_kaimynai.cpp:42:37: error: no match for call to ‘(std::vector<std::__cxx11::basic_string<char> >) (int&)’ 42 | cout << KOKIEKURVAZMONES(i) << " "; | ~~~~~~~~~~~~~~~~^~~
nr. | result | time | message |
---|