Borderou de evaluare (job #1239464)
Utilizator | Data | 9 octombrie 2014 01:21:45 | |
---|---|---|---|
Problema | Sortare prin comparare | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void xsort(int, int)’:
user.cpp:24:47: warning: operation on ‘v[j]’ may be undefined [-Wsequence-point]
v[i] = v[i] + v[j] - (v[j] = v[i]);
^
user.cpp:31:22: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
xsort(v, l, j);
^
user.cpp:31:22: error: too many arguments to function ‘void xsort(int, int)’
user.cpp:9:6: note: declared here
void xsort(int l, int r)
^
user.cpp:33:22: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
xsort(v, i, r);
^
user.cpp:33:22: error: too many arguments to function ‘void xsort(int, int)’
user.cpp:9:6: note: declared here
void xsort(int l, int r)
^
user.cpp: In function ‘int main()’:
user.cpp:41:12: warning: unused variable ‘aux’ [-Wunused-variable]
int n, aux, i;
^
user.cpp:43:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &n);
^
user.cpp:46:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !