Borderou de evaluare (job #1209903)
Utilizator | Data | 18 iulie 2014 20:29:25 | |
---|---|---|---|
Problema | Radix Sort | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:19: error: size of array ‘f’ is too large
int v[MAX], f[SIZE], s[MAX];
^
user.cpp: In function ‘int main()’:
user.cpp:26:11: error: ‘f’ was not declared in this scope
++f[v[i]];
^
user.cpp:31:9: error: ‘f’ was not declared in this scope
f[i] += f[i-1];
^
user.cpp:36:11: error: ‘f’ was not declared in this scope
s[f[v[i]]] = v[i];
^
user.cpp:11:40: 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:12:42: 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:14:41: 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 !