Borderou de evaluare (job #1342813)

Utilizator stefantrettTrett Stefan stefantrett Data 14 februarie 2015 15:56:15
Problema Paduri de multimi disjuncte Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:7: error: ‘NMAX’ was not declared in this scope int a[NMAX]; ^ user.cpp:7:7: error: ‘NMAX’ was not declared in this scope int b[NMAX]; ^ user.cpp: In function ‘int find(int)’: user.cpp:15:17: error: ‘a’ was not declared in this scope for (R = x; a[R] != R; R = a[R]); ^ user.cpp:18:12: error: ‘a’ was not declared in this scope for (; a[x] != x;) ^ user.cpp: In function ‘void unite(int, int)’: user.cpp:30:9: error: ‘b’ was not declared in this scope if (b[x] > b[y]) ^ user.cpp:31:9: error: ‘a’ was not declared in this scope a[y] = x; ^ user.cpp:32:10: error: ‘a’ was not declared in this scope else a[x] = y; ^ user.cpp:35:9: error: ‘b’ was not declared in this scope if (b[x] == b[y]) ^ user.cpp: In function ‘void sol()’: user.cpp:48:9: error: ‘a’ was not declared in this scope a[i] = i; ^ user.cpp:49:9: error: ‘b’ was not declared in this scope b[i] = 1; ^ user.cpp:68:24: error: return-statement with a value, in function returning 'void' [-fpermissive] return 0; ^ user.cpp:41:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d ", &N, &M); ^ user.cpp:54:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &cd, &x, &y); ^ user.cpp: In function ‘int main()’: user.cpp:77:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("disjoint.in", "r", stdin); ^ user.cpp:78:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("disjoint.out", "w", stdout); ^

Ceva nu functioneaza?