Borderou de evaluare (job #1803098)
Utilizator | Data | 10 noiembrie 2016 22:44:24 | |
---|---|---|---|
Problema | Statistici de ordine | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void merg(int, int, int)’:
user.cpp:8:21: error: ‘v’ was not declared in this scope
int i=st,j=dr,p=v[piv];
^
user.cpp:16:27: error: ‘swap’ was not declared in this scope
swap(v[i],v[j]);
^
user.cpp:18:13: error: ‘r’ was not declared in this scope
r=i;
^
user.cpp:20:8: error: ‘r’ was not declared in this scope
if(r>k)
^
user.cpp: In function ‘int main()’:
user.cpp:41:21: error: ‘v’ was not declared in this scope
scanf("%d",&v[i]);
^
user.cpp:44:17: error: ‘v’ was not declared in this scope
printf("%d",v[k]);
^
user.cpp:34:32: 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);
^
user.cpp:35:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sdo.out","w",stdout);
^
user.cpp:38:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&k);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !