Borderou de evaluare (job #1574778)
Utilizator | Data | 20 ianuarie 2016 20:29:50 | |
---|---|---|---|
Problema | Teams | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void quicksort(int*, int, long int)’:
user.cpp:23:30: error: ‘partition’ was not declared in this scope
p = partition(s, l, h);
^
user.cpp: In function ‘int main()’:
user.cpp:61:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
fscanf(f,"%d",&n);
^
user.cpp:62:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
fscanf(f,"%d",&a);
^
user.cpp:63:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
fscanf(f,"%d",&b);
^
user.cpp:65:6: error: invalid conversion from ‘int*’ to ‘long int*’ [-fpermissive]
s=(int*)malloc(n*sizeof(int));
^
user.cpp:67:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=]
fscanf(f,"%d",&s[i]);
^
user.cpp:70:22: error: invalid conversion from ‘long int*’ to ‘int*’ [-fpermissive]
quicksort(s,0,n-1);
^
user.cpp:16:6: error: initializing argument 1 of ‘void quicksort(int*, int, long int)’ [-fpermissive]
void quicksort(int s[], int l, long h)
^
user.cpp:61:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&n);
^
user.cpp:62:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&a);
^
user.cpp:63:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&b);
^
user.cpp:67:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&s[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !