Borderou de evaluare (job #2588990)
Utilizator | Data | 25 martie 2020 17:11:26 | |
---|---|---|---|
Problema | Permut | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:31:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
scanf("%d",&n);
^
main.cpp:32:38: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
for(i=1;i<=n;i++)scanf("%d",&a[i]);
^
main.cpp:33:38: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
for(i=1;i<=n;i++)scanf("%d",&b[i]);
^
main.cpp:34:20: error: cannot convert 'long long int*' to 'int*' for argument '1' to 'void quicksort(int*, int, int)'
quicksort(a,1,n);
^
main.cpp:35:20: error: cannot convert 'long long int*' to 'int*' for argument '1' to 'void quicksort(int*, int, int)'
quicksort(b,1,n);
^
main.cpp:29:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("permut.in","r",stdin);
^
main.cpp:30:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("permut.out","w",stdout);
^
main.cpp:31:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
main.cpp:32:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;i++)scanf("%d",&a[i]);
^
main.cpp:33:39: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;i++)scanf("%d",&b[i]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !