Borderou de evaluare (job #3271866)

Utilizator BiceaToader David Stefan Bicea Data 27 ianuarie 2025 16:31:10
Problema Flori Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int intersectie(int, int)': main.cpp:15:1: warning: no return statement in function returning non-void [-Wreturn-type] 15 | } | ^ main.cpp: At global scope: main.cpp:16:1: error: ISO C++ forbids declaration of 'reuniune' with no type [-fpermissive] 16 | reuniune(int r1 ,int r2) | ^~~~~~~~ main.cpp: In function 'int reuniune(int, int)': main.cpp:18:9: error: 'it' was not declared in this scope; did you mean 'it2'? 18 | for(it=flori[r1].begin() ; it!=flori;++it) | ^~ | it2 main.cpp:22:1: warning: no return statement in function returning non-void [-Wreturn-type] 22 | } | ^ main.cpp: In function 'int rad(int)': main.cpp:26:12: error: 't' was not declared in this scope 26 | while (r!=t[r]) r=t[r]; | ^ main.cpp:27:20: error: 't' was not declared in this scope 27 | while (x!=r) {aux=t[x]; t[x]=r; x=aux;} | ^ main.cpp: In function 'void unif(int, int)': main.cpp:33:6: error: 'h' was not declared in this scope 33 | if (h[r1]<h[r2]) t[r1]=r2; | ^ main.cpp:33:19: error: 't' was not declared in this scope; did you mean 'tm'? 33 | if (h[r1]<h[r2]) t[r1]=r2; | ^ | tm main.cpp:34:7: error: 't' was not declared in this scope; did you mean 'tm'? 34 | else t[r2]=r1; | ^ | tm main.cpp:35:6: error: 'h' was not declared in this scope 35 | if (h[r1]==h[r2]) h[r1]++; | ^ main.cpp: In function 'int main()': main.cpp:42:8: error: 't' was not declared in this scope 42 | t[i]=i; | ^ main.cpp:45:5: error: 'cin' was not declared in this scope 45 | cin>>x; | ^~~ main.cpp:4:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'? 3 | #include <set> +++ |+#include <iostream> 4 | using namespace std; main.cpp:45:10: error: 'x' was not declared in this scope Non zero exit status: 1

Ceva nu functioneaza?