Problem | nerdinvitation |
---|---|
User | geometric2 |
Submission Time | 2024-08-02 14:55:06 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
nerdinvitation.cpp: In function ‘int main()’:
nerdinvitation.cpp:17:14: error: ‘INT_MAX’ was not declared in this scope
17 | li delta = INT_MAX, best = -1;
| ^~~~~~~
nerdinvitation.cpp:4:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
3 | #include <vector>
+++ |+#include <climits>
4 |
nerdinvitation.cpp:29:7: error: ‘best’ was not declared in this scope
29 | best = i;
| ^~~~
nerdinvitation.cpp:33:18: error: ‘best’ was not declared in this scope
33 | std::cout << v[best].first << ' ' << v[best].second << '\n';
| ^~~~