Borderou de evaluare (job #3221909)
Utilizator | Data | 8 aprilie 2024 14:57:23 | |
---|---|---|---|
Problema | Algoritmul Bellman-Ford | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:3:2: error: invalid preprocessing directive #defe; did you mean #define?
3 | #defe nmax 50006
| ^~~~
| define
main.cpp:4:2: error: invalid preprocessing directive #defe; did you mean #define?
4 | #defe MOD 1999999973
| ^~~~
| define
main.cpp:5:2: error: invalid preprocessing directive #defe; did you mean #define?
5 | #defe INF 2012345678
| ^~~~
| define
main.cpp:6:2: error: invalid preprocessing directive #defe; did you mean #define?
6 | #defe ll long long
| ^~~~
| define
main.cpp:13:28: error: 'nmax' was not declared in this scope; did you mean 'fmax'?
13 | vector <pair <int, int>> L[nmax];
| ^~~~
| fmax
main.cpp:15:9: error: 'nmax' was not declared in this scope; did you mean 'fmax'?
15 | bitset <nmax> viz;
| ^~~~
| fmax
main.cpp:15:13: error: template argument 1 is invalid
15 | bitset <nmax> viz;
| ^
main.cpp:16:7: error: 'nmax' was not declared in this scope; did you mean 'fmax'?
16 | int d[nmax], cnt[nmax];
| ^~~~
| fmax
main.cpp:16:18: error: 'nmax' was not declared in this scope; did you mean 'fmax'?
16 | int d[nmax], cnt[nmax];
| ^~~~
| fmax
main.cpp: In function 'bool BellmanFord(int)':
main.cpp:21:17: error: 'd' was not declared in this scope
21 | d[i] = INF;
| ^
main.cpp:21:24: error: 'INF' was not declared in this scope
21 | d[i] = INF;
| ^~~
main.cpp:23:9: error: 'd' was not declared in this scope
23 | d[k] = 0;
| ^
main.cpp:24:12: error: invalid types 'int[int]' for array subscript
24 | viz[k] = 1;
| ^
main.cpp:28:20: error: invalid types 'int[int]' for array subscript
28 | viz[k] = 0;
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !