Borderou de evaluare (job #732044)

Utilizator avatar andrei4567 Stan Andrei andrei4567 IP ascuns
Problemă Virus2 Compilator cpp-32 | vezi sursa
Rundă Arhiva de probleme Status evaluat
Dată 13 sept. 2023 17:35:44 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:11:1: error: expected ',' or ';' before 'const' 11 | const int N = 2002; | ^~~~~ main.cpp:15:10: error: 'N' was not declared in this scope 15 | int tata[N * N + 2], h[N * N + 2]; | ^ main.cpp:15:14: error: 'N' was not declared in this scope 15 | int tata[N * N + 2], h[N * N + 2]; | ^ main.cpp:15:24: error: 'N' was not declared in this scope 15 | int tata[N * N + 2], h[N * N + 2]; | ^ main.cpp:15:28: error: 'N' was not declared in this scope 15 | int tata[N * N + 2], h[N * N + 2]; | ^ main.cpp:17:10: error: 'N' was not declared in this scope 17 | bool viz[N + 1][N + 1], viz1[N + 1][N + 1]; | ^ main.cpp:17:17: error: 'N' was not declared in this scope 17 | bool viz[N + 1][N + 1], viz1[N + 1][N + 1]; | ^ main.cpp:17:30: error: 'N' was not declared in this scope 17 | bool viz[N + 1][N + 1], viz1[N + 1][N + 1]; | ^ main.cpp:17:37: error: 'N' was not declared in this scope 17 | bool viz[N + 1][N + 1], viz1[N + 1][N + 1]; | ^ main.cpp: In function 'int DSU::rad(int)': main.cpp:37:9: error: 'tata' was not declared in this scope 37 | if (tata[node] == node)return node; | ^~~~ main.cpp:38:12: error: 'tata' was not declared in this scope 38 | return tata[node] = rad(tata[node]); | ^~~~ main.cpp: In function 'void DSU::unite(int, int)': main.cpp:44:13: error: 'h' was not declared in this scope 44 | if (h[rx] < h[ry]) | ^ main.cpp:46:13: error: 'tata' was not declared in this scope 46 | tata[rx] = ry; | ^~~~ main.cpp:51:13: error: 'tata' was not declared in this scope 51 | tata[ry] = rx; | ^~~~ main.cpp: In function 'void dfs(int, int)': main.cpp:76:5: error: 'viz' was not declared in this scope 76 | viz[x][y] = 1; | ^~~ main.cpp:81:52: error: 'viz1' was not declared in this scope 81 | if (inside (xx, yy) && (!viz[xx][yy]) && (!viz1[xx][yy]))