Borderou de evaluare (job #3278589)
Utilizator | Data | 20 februarie 2025 10:54:17 | |
---|---|---|---|
Problema | Take 5 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int solve()':
main.cpp:108:5: error: 'sort' was not declared in this scope; did you mean 'short'?
108 | sort(a.begin(), a.end());
| ^~~~
| short
main.cpp:110:16: error: 'INT_MAX' was not declared in this scope
110 | int smin = INT_MAX, smax = 0, cnt = 0;
| ^~~~~~~
main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
4 | #include <unordered_set>
+++ |+#include <climits>
5 |
main.cpp:117:20: error: 'cnt' was not declared in this scope; did you mean 'int'?
117 | return cnt;
| ^~~
| int
main.cpp:119:13: error: 'smax' was not declared in this scope
119 | if (smax + a[i] + a[n - 1] + a[n] >= req)
| ^~~~
main.cpp:120:46: error: 'cnt' was not declared in this scope; did you mean 'int'?
120 | check2ndTermOfSum(i, smin, smax, cnt);
| ^~~
| int
main.cpp:122:40: error: 'smax' was not declared in this scope
122 | checkIfPairCanMakeSum(i, smin, smax);
| ^~~~
main.cpp:124:12: error: 'cnt' was not declared in this scope; did you mean 'int'?
124 | return cnt;
| ^~~
| int
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !