Borderou de evaluare (job #1446233)
Utilizator | Data | 1 iunie 2015 08:14:50 | |
---|---|---|---|
Problema | Radix Sort | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:16:15: error: conflicting declaration ‘long long int x’
long long y,a,x;
^
user.cpp:15:33: error: ‘x’ has a previous declaration as ‘int x [256]’
int i,j,n,b,c,aux[nmax],v[nmax],x[256];
^
user.cpp: In function ‘int main()’:
user.cpp:20:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
scanf("%d%d%d%d",&n,&a,&b,&c);
^
user.cpp:23:6: error: incompatible types in assignment of ‘int’ to ‘int [256]’
x=v[i-1];
^
user.cpp:24:21: error: invalid operands of types ‘long long int’ and ‘int [256]’ to binary ‘operator*’
y=((long long)a*x+b)%c;
^
user.cpp:18:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("radixsort.in","r",stdin);
^
user.cpp:19:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("radixsort.out","w",stdout);
^
user.cpp:20:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&n,&a,&b,&c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !