Borderou de evaluare (job #1156408)

Utilizator ioalexno1Alexandru Bunget ioalexno1 Data 27 martie 2014 17:23:57
Problema Plan Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:24: error: uninitialized const ‘MAX_M’ [-fpermissive] const int MAX_N = 300, MAX_M; ^ user.cpp:10:43: error: array bound is not an integer constant before ‘]’ token int st[MAX_N], nrcomp, ind[MAX_N], x[MAX_M], y[MAX_M], sx[MAX_N * MAX_N], sy[MAX_N * MAX_N]; ^ user.cpp:10:53: error: array bound is not an integer constant before ‘]’ token int st[MAX_N], nrcomp, ind[MAX_N], x[MAX_M], y[MAX_M], sx[MAX_N * MAX_N], sy[MAX_N * MAX_N]; ^ user.cpp: In function ‘int main()’: user.cpp:41:16: error: ‘x’ was not declared in this scope cin >> x[i] >> y[i]; ^ user.cpp:41:24: error: ‘y’ was not declared in this scope cin >> x[i] >> y[i]; ^ user.cpp:61:16: error: ‘x’ was not declared in this scope if(ind[x[i]] != ind[y[i]] && x[i] != y[i]){ ^ user.cpp:61:29: error: ‘y’ was not declared in this scope if(ind[x[i]] != ind[y[i]] && x[i] != y[i]){ ^

Ceva nu functioneaza?