Kaimynų kaimynai
- [1] 2024-12-21 13:38 (0)
- [2] 2024-12-21 13:39 (0)
- [3] 2024-12-21 14:13 (0)
- [4] 2024-12-21 14:21 (60)
- [5] 2024-12-21 14:22 (100)
Taškai: 0
Compile: FAIL
kaimynu_kaimynai.cpp: In function ‘int main()’: kaimynu_kaimynai.cpp:27:37: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?) 27 | for (int i = 0; i < vec[brr[z]].size; i++) { | ~~~~~~~~~~~~^~~~ | () kaimynu_kaimynai.cpp:31:37: error: invalid use of member function ‘std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?) 31 | for (int i = 0; i < vec[brr[z]].size; i++) { | ~~~~~~~~~~~~^~~~ | () kaimynu_kaimynai.cpp:32:32: error: no match for ‘operator[]’ (operand types are ‘std::vector<std::__cxx11::basic_string<char> > [a]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type’ {aka ‘std::__cxx11::basic_string<char>’}) 32 | for (int j = 0; j < vec[vec[brr[z]][i]].size; j++) { | ^ kaimynu_kaimynai.cpp:33:24: error: no match for ‘operator[]’ (operand types are ‘std::vector<std::__cxx11::basic_string<char> > [a]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type’ {aka ‘std::__cxx11::basic_string<char>’}) 33 | if (!mp[vec[vec[brr[z]][i]][j]] && z != vec[vec[brr[z]][i]][j]) { | ^ kaimynu_kaimynai.cpp:33:56: error: no match for ‘operator[]’ (operand types are ‘std::vector<std::__cxx11::basic_string<char> > [a]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type’ {aka ‘std::__cxx11::basic_string<char>’}) 33 | if (!mp[vec[vec[brr[z]][i]][j]] && z != vec[vec[brr[z]][i]][j]) { | ^ kaimynu_kaimynai.cpp:34:24: error: no match for ‘operator[]’ (operand types are ‘std::vector<std::__cxx11::basic_string<char> > [a]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type’ {aka ‘std::__cxx11::basic_string<char>’}) 34 | str[vec[vec[brr[z]][i]][j]] = true; | ^
nr. | result | time | message |
---|