Borderou de evaluare (job #1233408)
Utilizator | Data | 25 septembrie 2014 11:57:04 | |
---|---|---|---|
Problema | Sortare prin comparare | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:2:7: error: expected unqualified-id before ‘;’ token
int i,;
^
user.cpp: In function ‘void sortare(int, int)’:
user.cpp:6:6: warning: statement has no effect [-Wunused-value]
m==(l+r)/2;
^
user.cpp:15:24: error: ‘a’ was not declared in this scope
if(j>r||(i<=m&&a[i]<a[j]))
^
user.cpp:18:13: error: ‘b’ was not declared in this scope
b[k]=a[i];
^
user.cpp:23:13: error: ‘b’ was not declared in this scope
b[k]=a[j];
^
user.cpp:28:9: error: ‘a’ was not declared in this scope
a[k]=b[k];
^
user.cpp:28:14: error: ‘b’ was not declared in this scope
a[k]=b[k];
^
user.cpp: In function ‘int main()’:
user.cpp:35:17: error: ‘n’ was not declared in this scope
scanf("%d",&n);
^
user.cpp:38:21: error: ‘a’ was not declared in this scope
scanf("%d",&a[i]);
^
user.cpp:43:22: error: ‘a’ was not declared in this scope
printf("%d ",a[i]);
^
user.cpp:33:36: 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:38: 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);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !