Borderou de evaluare (job #2909494)
Utilizator | Data | 13 iunie 2022 23:03:15 | |
---|---|---|---|
Problema | Subsecventa de suma maxima | Status | done |
Runda | Arhiva educationala | Compilator | c-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:9:20: error: expected expression before 'int'
9 | int bestSum = -int(2e9), sum = 0, beg, end, idx;
| ^~~
main.c:14:13: error: 'sum' undeclared (first use in this function)
14 | if (sum < 0)
| ^~~
main.c:14:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:22: error: 'idx' undeclared (first use in this function)
15 | sum = S, idx = i;
| ^~~
main.c:15:20: warning: left-hand operand of comma expression has no effect [-Wunused-value]
15 | sum = S, idx = i;
| ^
main.c:19:28: error: 'beg' undeclared (first use in this function)
19 | bestSum = sum, beg = idx, end = i;
| ^~~
main.c:19:26: warning: left-hand operand of comma expression has no effect [-Wunused-value]
19 | bestSum = sum, beg = idx, end = i;
| ^
main.c:19:39: error: 'end' undeclared (first use in this function)
19 | bestSum = sum, beg = idx, end = i;
| ^~~
main.c:19:37: warning: left-hand operand of comma expression has no effect [-Wunused-value]
19 | bestSum = sum, beg = idx, end = i;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !