Borderou de evaluare (job #3323491)
| Utilizator | Data | 18 noiembrie 2025 13:23:03 | |
|---|---|---|---|
| Problema | Floyd-Warshall/Roy-Floyd | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:14:1: error: template placeholder type 'vector<...auto...>' must be followed by a simple declarator-id
14 | vector D[10000005];
| ^~~~~~
In file included from /usr/include/c++/12.2.1/vector:64,
from /usr/include/c++/12.2.1/queue:61,
from main.cpp:4:
/usr/include/c++/12.2.1/bits/stl_vector.h:423:11: note: 'template<class _Tp, class _Alloc> class std::vector' declared here
423 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
main.cpp: In function 'int main()':
main.cpp:23:17: error: 'D' was not declared in this scope
23 | D[i][j] = 0;
| ^
main.cpp:25:17: error: 'D' was not declared in this scope
25 | D[i][j] = INT_MAX;
| ^
main.cpp:31:9: error: 'D' was not declared in this scope
31 | D[x][y] = min(D[x][y], c);
| ^
main.cpp:36:21: error: 'D' was not declared in this scope
36 | if (D[i][k] != INT_MAX && D[k][j] != INT_MAX) {
| ^
main.cpp:45:24: error: 'D' was not declared in this scope
45 | int distanta = D[s][i];
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
