Borderou de evaluare (job #2066999)
Utilizator | Data | 15 noiembrie 2017 19:17:03 | |
---|---|---|---|
Problema | Sushi | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:6:29: error: size of array ‘v’ is too large
int sushi(int x, int y, int v[NMAX]) {
^
user.c: In function ‘main’:
user.c:24:4: error: type of formal parameter 3 is incomplete
if (sushi(i, j, v) > S) {
^
user.c:25:5: error: type of formal parameter 3 is incomplete
S = sushi(i, j, v);
^
user.c:34:4: error: type of formal parameter 3 is incomplete
if (sushi(i, j, v) == S) {
^
user.c:45:2: error: type of formal parameter 3 is incomplete
printf("%d %d %d\n", p, q, sushi(p, q, v));
^
user.c:12:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sushi.in", "r", stdin);
^
user.c:13:9: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sushi.out", "w", stdout);
^
user.c:16:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.c:18:8: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
user.c:11: confused by earlier errors, bailing out
Preprocessed source stored into /tmp/cc9aJGg0.out file, please attach this to your bugreport.
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/_usr_lib_gcc_i686-linux-gnu_4.8_cc1.0.crash'
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !