Borderou de evaluare (job #2853475)
Utilizator | Data | 20 februarie 2022 12:24:20 | |
---|---|---|---|
Problema | Subsecventa de suma maxima | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:10:20: error: 'LLONG_MAX' was not declared in this scope
10 | long long smin=LLONG_MAX, smax=-LLONG_MAX,difmax=-LLONG_MAX;//ulong max cred ca e
| ^~~~~~~~~
main.cpp:3:1: note: 'LLONG_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
2 | #include <fstream>
+++ |+#include <climits>
3 | using namespace std;
main.cpp:21:17: error: 'smax' was not declared in this scope
21 | if(s[i]>smax)
| ^~~~
main.cpp:26:26: error: 'smax' was not declared in this scope
26 | cout<<smin<<" "<<smax<<"\n";
| ^~~~
main.cpp:29:26: error: 'difmax' was not declared in this scope
29 | if(smax-smin>difmax)
| ^~~~~~
main.cpp:33:13: error: 'difmax' was not declared in this scope
33 | if(s[1]>difmax)
| ^~~~~~
main.cpp:39:11: error: 'difmax' was not declared in this scope
39 | fout<<difmax<<" "<<poz1+1<<" "<<poz2;
| ^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !