Borderou de evaluare (job #1634880)
Utilizator | Data | 6 martie 2016 14:38:49 | |
---|---|---|---|
Problema | Unlock | Status | done |
Runda | ONIS 2016, Runda 1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:79:42: error: size of array ‘disjoint’ is too large
int disjoint[MAX_N * MAX_N][MAX_N * MAX_N];
^
user.cpp: In function ‘int get_root(int)’:
user.cpp:99:10: error: ‘disjoint’ was not declared in this scope
return (disjoint[gColor][node] == 0) ? node : (disjoint[gColor][node] = get_root(disjoint[gColor][node]));
^
user.cpp: In function ‘void join(int, int)’:
user.cpp:107:3: error: ‘disjoint’ was not declared in this scope
disjoint[gColor][r1] = b;
^
user.cpp:109:3: error: ‘disjoint’ was not declared in this scope
disjoint[gColor][r2] = a;
^
user.cpp: In function ‘void solve()’:
user.cpp:152:11: error: ‘disjoint’ was not declared in this scope
memset(disjoint[i], 0, sizeof(disjoint[i]));
^
user.cpp: In function ‘int get_root(int)’:
user.cpp:100:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !