Borderou de evaluare (job #2695412)

Utilizator mihaiioanMihai Ioan mihaiioan Data 12 ianuarie 2021 21:36:27
Problema Floyd-Warshall/Roy-Floyd Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:49:3: error: invalid preprocessing directive #matricea # matricea initiala trebuie introdusa manual ^~~~~~~~ main.cpp:5:1: error: expected ',' or ';' before 'int' int INF=99999 ^~~ main.cpp:9:34: error: array bound is not an integer constant before ']' token void floydWarshall (int graph[][V]) ^ main.cpp: In function 'void floydWarshall(...)': main.cpp:15:26: error: 'graph' was not declared in this scope dist[i][j] = graph[i][j]; ^~~~~ main.cpp:29:18: error: 'printSol' was not declared in this scope printSol(dist); ^ main.cpp: At global scope: main.cpp:31:27: error: array bound is not an integer constant before ']' token void printSol(int dist[][V]) ^ main.cpp: In function 'void printSol(...)': main.cpp:38:17: error: 'dist' was not declared in this scope if (dist[i][j] == INF) ^~~~ main.cpp:38:31: error: 'INF' was not declared in this scope if (dist[i][j] == INF) ^~~ main.cpp: In function 'int main()': main.cpp:50:32: error: 'INF' was not declared in this scope int graph[V][V] = { {0, 4, INF, 9}, ^~~ Non zero exit status: 1

Ceva nu functioneaza?