Labirintas
- [1] 2025-01-23 13:26 (0)
- [2] 2025-01-23 21:05 (0)
- [3] 2025-01-23 21:06 (0)
- [4] 2025-01-23 21:12 (0)
- [5] 2025-01-23 21:14 (0)
- [6] 2025-01-23 21:22 (0)
- [7] 2025-01-24 12:00 (7.4)
- [8] 2025-01-24 12:01 (7.4)
- [9] 2025-01-24 12:10 (7.4)
- [10] 2025-01-24 12:12 (7.4)
- [11] 2025-01-25 20:35 (100)
Taškai: 0
Compile: FAIL
labirintas.cpp: In function ‘int main()’: labirintas.cpp:12:22: error: ‘o’ was not declared in this scope 12 | for (int j = o; j < maxn; j++) { | ^ labirintas.cpp:13:21: error: request for member ‘first’ in ‘dist[i]’, which is of non-class type ‘std::pair<int, std::pair<int, int> > [201]’ 13 | dist[i].first = INT_MAX; | ^~~~~ labirintas.cpp:36:12: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘first’ 36 | dis[0].first.push_back(sx); | ^~~~~ labirintas.cpp:37:12: error: ‘class std::vector<std::pair<int, int> >’ has no member named ‘second’ 37 | dis[0].second.push_back(sy); | ^~~~~~ labirintas.cpp:40:35: error: no match for ‘operator[]’ (operand types are ‘bool [201][201]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘std::pair<int, int>’}) 40 | for(int k = 0; k < adj[dis[i-1][j]].size(); k++) { | ^ labirintas.cpp:41:28: error: no match for ‘operator[]’ (operand types are ‘bool [201][201]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘std::pair<int, int>’}) 41 | if(dist[adj[dis[i-1][j]][k]].first > i) { | ^ labirintas.cpp:42:29: error: no match for ‘operator[]’ (operand types are ‘bool [201][201]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘std::pair<int, int>’}) 42 | dist[adj[dis[i-1][j]][k]].first = i; | ^ labirintas.cpp:43:41: error: no match for ‘operator[]’ (operand types are ‘bool [201][201]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘std::pair<int, int>’}) 43 | dis[i].push_back(adj[dis[i-1][j]][k]); | ^ labirintas.cpp:44:29: error: no match for ‘operator[]’ (operand types are ‘bool [201][201]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘std::pair<int, int>’}) 44 | dist[adj[dis[i-1][j]][k]].second = dis[i-1][j]; | ^ labirintas.cpp:49:18: error: ‘y’ was not declared in this scope 49 | cout << dist[y].first+1 << "\n"; | ^ labirintas.cpp:51:17: error: ‘z’ was not declared in this scope 51 | cout << z+1 << " "; | ^
nr. | result | time | message |
---|