Borderou de evaluare (job #1588068)

Utilizator howsiweiHow Si Wei howsiwei Data 2 februarie 2016 19:30:29
Problema Ciclu hamiltonian de cost minim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8:26: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] array<array<int,maxn-1>,1<<maxn-1> len; ^ user.cpp: In function ‘int main()’: user.cpp:15:2: error: ‘vector’ was not declared in this scope vector<vector<int>> adjm(n, vector<int>(n, oo)); ^ user.cpp:15:16: error: expected primary-expression before ‘int’ vector<vector<int>> adjm(n, vector<int>(n, oo)); ^ user.cpp:15:16: error: expected ‘;’ before ‘int’ user.cpp:19:3: error: ‘adjm’ was not declared in this scope adjm[u][v] = w; ^ user.cpp:21:14: warning: suggest parentheses around ‘-’ inside ‘<<’ [-Wparentheses] int N = 1<<n-1; ^ user.cpp:23:18: error: ‘adjm’ was not declared in this scope len[1<<i][i] = adjm[i][n-1]; ^ user.cpp:28:17: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] int Mi = M^M1&-M1; ^ user.cpp:31:32: error: ‘adjm’ was not declared in this scope len[M][i] = min(len[M][i], adjm[i][j]+len[Mi][j]); ^ user.cpp:37:30: error: ‘adjm’ was not declared in this scope ans = min(ans, len[N-1][i]+adjm[n-1][i]); ^ user.cpp:11:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("hamilton.in", "r", stdin); ^ user.cpp:12:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("hamilton.out", "w", stdout); ^

Ceva nu functioneaza?