Borderou de evaluare (job #3312007)
| Utilizator | Data | 25 septembrie 2025 13:15:56 | |
|---|---|---|---|
| Problema | Statistici de ordine | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void part3(int*, int, int, int&)':
main.cpp:8:10: error: 'p1' was not declared in this scope; did you mean 'p'?
8 | p1=st;
| ^~
| p
main.cpp:9:10: error: 'p2' was not declared in this scope; did you mean 'p'?
9 | p2=dr;
| ^~
| p
main.cpp: In function 'void quicksort(int*, int, int, int)':
main.cpp:30:19: error: too many arguments to function 'void part3(int*, int, int, int&)'
30 | part3(v,st,dr,p1,p2);
| ~~~~~^~~~~~~~~~~~~~~
main.cpp:4:6: note: declared here
4 | void part3(int v[], int st, int dr, int &p){
| ^~~~~
main.cpp: In function 'int main()':
main.cpp:42:20: error: variable 'std::ifstream cin' has initializer but incomplete type
42 | ifstream cin ("sdo.in");
| ^
main.cpp:43:20: error: variable 'std::ofstream cout' has initializer but incomplete type
43 | ofstream cout("sdo.out");
| ^
main.cpp:48:14: error: 'v' was not declared in this scope
48 | cin>>v[i];
| ^
main.cpp:51:17: error: 'v' was not declared in this scope
51 | quicksort(v,0,n-1,k);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
