Trumpiausias ciklas
- [1] 2025-01-27 20:23 (0)
- [2] 2025-01-27 20:24 (0)
- [3] 2025-01-27 20:28 (15)
- [4] 2025-01-27 20:35 (15)
- [5] 2025-01-27 20:36 (15)
- [6] 2025-01-27 20:39 (15)
- [7] 2025-01-27 20:40 (30)
- [8] 2025-01-27 21:05 (30)
- [9] 2025-01-27 21:07 (10)
- [10] 2025-01-27 21:11 (30)
- [11] 2025-01-27 21:12 (30)
- [12] 2025-01-27 21:26 (0)
- [13] 2025-01-27 22:10 (10)
- [14] 2025-01-28 18:01 (0)
- [15] 2025-01-28 18:02 (10)
- [16] 2025-01-28 18:08 (30)
- [17] 2025-02-01 12:22 (0)
- [18] 2025-02-01 12:26 (0)
- [19] 2025-02-01 12:27 (20)
- [20] 2025-02-01 12:30 (20)
- [21] 2025-02-01 12:39 (30)
- [22] 2025-02-01 12:41 (10)
- [23] 2025-02-01 12:51 (60)
- [24] 2025-02-01 13:04 (100)
Taškai: 0
Compile: FAIL
ciklas.cpp: In function ‘int bfs(int, int)’: ciklas.cpp:20:32: error: invalid types ‘std::vector<int> [2500][<unresolved overloaded function type>]’ for array subscript 20 | for (int i = 0; i < adj[Q.front].size(); i++) { | ^ ciklas.cpp:21:25: error: invalid types ‘std::vector<int> [2500][<unresolved overloaded function type>]’ for array subscript 21 | if (!vis[adj[Q.front][i]] && (Q.front != start || adj[Q.front][i] != end)) { | ^ ciklas.cpp:21:51: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator!=’ 21 | if (!vis[adj[Q.front][i]] && (Q.front != start || adj[Q.front][i] != end)) { | ~~~~~~~ ^~ ~~~~~ | | | | | int | <unresolved overloaded function type> ciklas.cpp:21:66: error: invalid types ‘std::vector<int> [2500][<unresolved overloaded function type>]’ for array subscript 21 | if (!vis[adj[Q.front][i]] && (Q.front != start || adj[Q.front][i] != end)) { | ^ ciklas.cpp:22:24: error: invalid types ‘std::vector<int> [2500][<unresolved overloaded function type>]’ for array subscript 22 | if (adj[Q.front][i] == end) { | ^ ciklas.cpp:24:32: error: invalid types ‘int [2500][<unresolved overloaded function type>]’ for array subscript 24 | answ = dist[Q.front]+1; | ^ ciklas.cpp:26:27: error: invalid types ‘std::vector<int> [2500][<unresolved overloaded function type>]’ for array subscript 26 | Q.push(adj[Q.front][i]); | ^ ciklas.cpp:27:24: error: invalid types ‘std::vector<int> [2500][<unresolved overloaded function type>]’ for array subscript 27 | vis[adj[Q.front][i]] = true; | ^ ciklas.cpp:28:25: error: invalid types ‘std::vector<int> [2500][<unresolved overloaded function type>]’ for array subscript 28 | dist[adj[Q.front][i]] = dist[Q.front]+1; | ^ ciklas.cpp:28:45: error: invalid types ‘int [2500][<unresolved overloaded function type>]’ for array subscript 28 | dist[adj[Q.front][i]] = dist[Q.front]+1; | ^
nr. | result | time | message |
---|