Borderou de evaluare (job #3172917)
Utilizator | Data | 21 noiembrie 2023 16:35:23 | |
---|---|---|---|
Problema | Camionas | Status | done |
Runda | Arhiva de probleme | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c:83:14: error: expected expression before '=' token
83 | #define nMax = 5 * 10000 + 2;
| ^
main.c:88:9: note: in expansion of macro 'nMax'
88 | int viz[nMax];
| ^~~~
main.c:83:14: error: expected expression before '=' token
83 | #define nMax = 5 * 10000 + 2;
| ^
main.c:89:9: note: in expansion of macro 'nMax'
89 | ll dist[nMax];
| ^~~~
main.c:83:14: error: expected expression before '=' token
83 | #define nMax = 5 * 10000 + 2;
| ^
main.c:96:12: note: in expansion of macro 'nMax'
96 | Node graph[nMax][nMax];
| ^~~~
main.c:96:22: error: expected identifier or '(' before ']' token
96 | Node graph[nMax][nMax];
| ^
main.c: In function 'Dijkstra':
main.c:100:5: error: 'dist' undeclared (first use in this function)
100 | dist[start] = 0;
| ^~~~
main.c:100:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:83:14: error: expected expression before '=' token
83 | #define nMax = 5 * 10000 + 2;
| ^
main.c:102:23: note: in expansion of macro 'nMax'
102 | Q = createMinHeap(nMax);
| ^~~~
main.c:110:13: error: 'viz' undeclared (first use in this function)
110 | if (viz[current])
| ^~~
main.c:83:14: error: expected expression before '=' token
83 | #define nMax = 5 * 10000 + 2;
| ^
main.c:115:29: note: in expansion of macro 'nMax'
115 | for (int i = 0; i < nMax; i++) {
| ^~~~
main.c:115:33: error: expected expression before ';' token
115 | for (int i = 0; i < nMax; i++) {
| ^
main.c:116:29: error: 'graph' undeclared (first use in this function)
116 | Node neighbor = graph[current][i];
| ^~~~~
main.c:108:13: warning: variable 'current' set but not used [-Wunused-but-set-variable]
108 | int current = top.second;
| ^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !