Borderou de evaluare (job #721453)

Utilizator avatar Bogdan8765ew Bogdan Nicolaev Bogdan8765ew IP ascuns
Problemă Ruine Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 25 mai 2023 10:34:17 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:6:1: error: expected ',' or ';' before 'int' 6 | int t[N],a[N],s[N]; | ^~~ main.cpp: In function 'void Union(int, int)': main.cpp:14:5: error: 't' was not declared in this scope 14 | t[y]=x; | ^ main.cpp:15:5: error: 's' was not declared in this scope 15 | s[x]+=s[y]; | ^ main.cpp: In function 'int Find(int)': main.cpp:20:11: error: 't' was not declared in this scope 20 | while(t[rad]) rad=t[rad]; | ^ main.cpp:25:13: error: 't' was not declared in this scope 25 | y = t[x]; | ^ main.cpp: In function 'int main()': main.cpp:37:28: error: 's' was not declared in this scope 37 | for(i=1;i<=n;i++) fin>>s[i]; | ^ main.cpp:47:29: error: 's' was not declared in this scope 47 | for(i=1;i<=n;i++) cout<<s[i]<<" "; | ^ main.cpp:55:22: error: 's' was not declared in this scope 55 | sol.push(s[x]); | ^