Borderou de evaluare (job #1882115)
Utilizator | Data | 16 februarie 2017 22:57:27 | |
---|---|---|---|
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 Part(int, int)’:
user.cpp:15:32: error: ‘p’ was not declared in this scope
do {++i;}while(a [i] < p);
^
user.cpp:18:28: error: ‘swap’ was not declared in this scope
swap(a[i], a[j])
^
user.cpp:19:9: error: expected ‘;’ before ‘}’ token
}else return j;
^
user.cpp: In function ‘void QuickSort(int, int)’:
user.cpp:26:30: error: ‘part’ was not declared in this scope
sp = part(left, right);
^
user.cpp:23:9: warning: unused variable ‘m’ [-Wunused-variable]
int m, sp;
^
user.cpp: In function ‘int main()’:
user.cpp:34: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:35: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:37:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
user.cpp:40:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !