Borderou de evaluare (job #2952036)
Utilizator | Data | 8 decembrie 2022 09:04:28 | |
---|---|---|---|
Problema | A+B | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void quicksort(int*, int, int)':
main.cpp:5:15: error: 'rand' was not declared in this scope
5 | int piv = ( rand() % (dr-st+1) ) + st ;
| ^~~~
main.cpp:6:3: error: 'swap' was not declared in this scope
6 | swap( a[piv] , a[dr] );
| ^~~~
main.cpp: At global scope:
main.cpp:22:5: error: redefinition of 'int v [100001]'
22 | int v[NMAX+1],copie[NMAX+1];
| ^
main.cpp:1:5: note: 'int v [100001]' previously declared here
1 | int v[100001];
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !