Borderou de evaluare (job #3268744)
Utilizator | Data | 16 ianuarie 2025 22:30:38 | |
---|---|---|---|
Problema | Subsecventa de suma maxima | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:53: error: 'INT_MIN' was not declared in this scope
8 | int n, suma, max_suma, st, max_st, max_dr, max_nr = INT_MIN, poz_max_nr;
| ^~~~~~~
main.cpp:2:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
1 | #include <fstream>
+++ |+#include <climits>
2 |
main.cpp: In function 'int main()':
main.cpp:19:25: error: 'poz_max_nr' was not declared in this scope; did you mean 'max_nr'?
19 | max_nr = s, poz_max_nr = i;
| ^~~~~~~~~~
| max_nr
main.cpp:32:34: error: 'poz_max_nr' was not declared in this scope; did you mean 'max_nr'?
32 | cout << max_nr << " " << poz_max_nr << " " << poz_max_nr;
| ^~~~~~~~~~
| max_nr
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !