Borderou de evaluare (job #1883478)
Utilizator | Data | 17 februarie 2017 23:37:55 | |
---|---|---|---|
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 partition(int*, int, int)’:
user.cpp:17:25: error: expected ‘;’ before ‘)’ token
temp = a[i]; a[i] = a[j]); a[j] = temp;
^
user.cpp:19:25: error: expected ‘;’ before ‘)’ token
temp = a[l]; a[l] = a[j]); a[j] = temp;
^
user.cpp: In function ‘void QuickSort(int*, int, int)’:
user.cpp:25:52: error: ‘Partition’ was not declared in this scope
int split = Partition(sequence, left, right);
^
user.cpp: In function ‘int main()’:
user.cpp:33:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("algsort.in", "r", stdin);
^
user.cpp:34:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("algsort.out", "w", stdout);
^
user.cpp:36:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
user.cpp:39:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &myArray[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !