Borderou de evaluare (job #2508723)
Utilizator | Data | 12 decembrie 2019 20:54:20 | |
---|---|---|---|
Problema | Maxq | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int summax(int, int)':
main.cpp:23:19: error: 'INT_MIN' was not declared in this scope
int bestSum = INT_MIN, sum = 0, st, dr = 0, j;
^~~~~~~
main.cpp:26:16: error: 'sum' was not declared in this scope
if (sum < 0)
^~~
main.cpp:27:25: error: 'j' was not declared in this scope
sum = x, j = i;
^
main.cpp:31:26: error: 'sum' was not declared in this scope
if (bestSum < sum)
^~~
main.cpp:32:31: error: 'st' was not declared in this scope
bestSum = sum, st=j, dr = i;
^~
main.cpp:32:34: error: 'j' was not declared in this scope
bestSum = sum, st=j, dr = i;
^
main.cpp:32:37: error: 'dr' was not declared in this scope
bestSum = sum, st=j, dr = i;
^~
main.cpp: In function 'int main()':
main.cpp:44:19: error: 'INT_MIN' was not declared in this scope
int bestSum = INT_MIN, sum = 0, st, dr, j;
^~~~~~~
main.cpp:43:12: warning: unused variable 'x' [-Wunused-variable]
int n, x;
^
main.cpp:44:9: warning: unused variable 'bestSum' [-Wunused-variable]
int bestSum = INT_MIN, sum = 0, st, dr, j;
^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !