Borderou de evaluare (job #2391838)
| Utilizator | Data | 29 martie 2019 12:01:00 | |
|---|---|---|---|
| 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 'int P(int*, int, int)':
main.cpp:16:30: error: 'rand' was not declared in this scope
int i=b-1,j=c+1,p=a[b+(rand()%(c-b+1))];
^
main.cpp:22:18: error: 'swap' was not declared in this scope
swap(a[i],a[j]);
^
main.cpp: In function 'int main()':
main.cpp:38:22: error: 'srand' was not declared in this scope
for(srand(time(NULL)),n=A(),k=A(),i=1;i<=n;i++)
^
main.cpp:39:3: error: 'f' was not declared in this scope
f>>a[i];
^
main.cpp:37:81: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sdo.in","r",stdin),freopen("sdo.out","w",stdout),fread(r,1,N,stdin);
^
main.cpp:37:81: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:37:81: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
