Borderou de evaluare (job #2228602)
Utilizator | Data | 4 august 2018 13:22:18 | |
---|---|---|---|
Problema | Sortare prin comparare | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int random_part(int*, int, int)’:
user.cpp:42:19: error: ‘rand’ was not declared in this scope
int index = rand() % (right - left) + left;
^
user.cpp: In function ‘int main()’:
user.cpp:70:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(ip, "%d", &n);
^
user.cpp:74:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(ip, "%d", &a[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !