Borderou de evaluare (job #2352792)
Utilizator | Data | 23 februarie 2019 17:47:05 | |
---|---|---|---|
Problema | Paduri de multimi disjuncte | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:1: error: 'include' does not name a type
include <stdio.h>
^~~~~~~
main.cpp: In function 'int find(int)':
main.cpp:13:14: error: 'TT' was not declared in this scope
for (R = x; TT[R] != R; R = TT[R]);
^~
main.cpp:16:9: error: 'TT' was not declared in this scope
for (; TT[x] != x;)
^~
main.cpp: In function 'void unite(int, int)':
main.cpp:28:6: error: 'RG' was not declared in this scope
if (RG[x] > RG[y])
^~
main.cpp:29:3: error: 'TT' was not declared in this scope
TT[y] = x;
^~
main.cpp:30:9: error: 'TT' was not declared in this scope
else TT[x] = y;
^~
main.cpp:33:6: error: 'RG' was not declared in this scope
if (RG[x] == RG[y]) RG[y]++;
^~
main.cpp: In function 'int main()':
main.cpp:38:30: error: 'stdin' was not declared in this scope
freopen("disjoint.in", "r", stdin);
^~~~~
main.cpp:38:35: error: 'freopen' was not declared in this scope
freopen("disjoint.in", "r", stdin);
^
main.cpp:39:31: error: 'stdout' was not declared in this scope
freopen("disjoint.out", "w", stdout);
^~~~~~
main.cpp:41:24: error: 'scanf' was not declared in this scope
scanf("%d %d ", &N, &M);
^
main.cpp:48:3: error: 'TT' was not declared in this scope
TT[i] = i;
^~
main.cpp:49:3: error: 'RG' was not declared in this scope
RG[i] = 1;
^~
main.cpp:58:41: error: 'printf' was not declared in this scope
if (find(x) == find(y)) printf("DA\n");
^
main.cpp:59:23: error: 'printf' was not declared in this scope
else printf("NU\n");
^
main.cpp:63:40: error: 'stderr' was not declared in this scope
if (find(x) == find(y)) {fprintf(stderr,"%d ", i);return 0;}
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !