Borderou de evaluare (job #3125413)

Utilizator apocal1ps13Stefan Oprea Antoniu apocal1ps13 Data 2 mai 2023 23:25:24
Problema Ciclu hamiltonian de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:12:57: error: 'INF' was not declared in this scope 12 | for (int j = 0; j < n; j++) adj[i][j] = INF; | ^~~ main.cpp:14:47: error: 'INF' was not declared in this scope 14 | vector<vector<int>>dp(masca,vector<int>(n,INF)); | ^~~ main.cpp:27:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 27 | for (int i=1 ;i<n ;i++) | ^~~ main.cpp:29:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 29 | if (ans==INF) cout<<"Nu exista solutie"; | ^~ Non zero exit status: 1

Ceva nu functioneaza?