Problem | sandd |
---|---|
User | StormyGood |
Submission Time | 2025-08-15 14:35:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:38:17: error: ‘LLONG_MAX’ was not declared in this scope
38 | diffl = LLONG_MAX;
| ^~~~~~~~~
sandd.cpp:2:1: note: ‘LLONG_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
1 | #include "sandd.h"
+++ |+#include <climits>
2 | using namespace std;
sandd.cpp:40:17: error: ‘llabs’ was not declared in this scope
40 | diffl = llabs(sl - dl);
| ^~~~~
sandd.cpp:42:17: error: ‘LLONG_MAX’ was not declared in this scope
42 | diffr = LLONG_MAX;
| ^~~~~~~~~
sandd.cpp:42:17: note: ‘LLONG_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
sandd.cpp:44:17: error: ‘llabs’ was not declared in this scope
44 | diffr = llabs(sr - dr);
| ^~~~~