Borderou de evaluare (job #2930134)

Utilizator Alex_DiaconuDiaconu Alexandru Alex_Diaconu Data 27 octombrie 2022 16:16:35
Problema Autobuze Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:12: error: expected initializer before '-' token 8 | const int N-50005; | ^ main.cpp:9:1: error: 'bitset' does not name a type 9 | bitset <10000001> ok; | ^~~~~~ main.cpp:10:9: error: 'N' was not declared in this scope 10 | int sef[N],v[N]; | ^ main.cpp:10:14: error: 'N' was not declared in this scope 10 | int sef[N],v[N]; | ^ main.cpp: In function 'int Sef(int)': main.cpp:14:8: error: 'sef' was not declared in this scope; did you mean 'Sef'? 14 | if(sef[x]==x) | ^~~ | Sef main.cpp:18:12: error: 'sef' was not declared in this scope; did you mean 'Sef'? 18 | return sef[x]=Sef(sef[x]); | ^~~ | Sef main.cpp: In function 'void unire(int, int)': main.cpp:24:5: error: 'sef' was not declared in this scope; did you mean 'Sef'? 24 | sef[X]=Y; | ^~~ | Sef main.cpp: In function 'int main()': main.cpp:33:16: error: 'v' was not declared in this scope 33 | cin >> v[i]; | ^ main.cpp:34:9: error: 'ok' was not declared in this scope 34 | ok[v[i]]=1; | ^~ main.cpp:35:9: error: 'sef' was not declared in this scope; did you mean 'Sef'? 35 | sef[i]=i; | ^~~ | Sef main.cpp:37:11: error: 'v' was not declared in this scope 37 | sort (v+1,v+n+1); | ^ main.cpp:37:5: error: 'sort' was not declared in this scope; did you mean 'qsort'? 37 | sort (v+1,v+n+1); | ^~~~ | qsort main.cpp:44:17: error: 'ok' was not declared in this scope 44 | if (ok[m*v[i]]==1) | ^~ main.cpp:29:18: warning: unused variable 'pozt' [-Wunused-variable] 29 | int n, m, r, pozt, st, dr, mid, poz; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?