Problem | sandd |
---|---|
User | mingging1748 |
Submission Time | 2025-01-26 21:46:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sandd.cpp: In function ‘int getPrice(int)’:
sandd.cpp:6:20: error: ‘LLONG_MAX’ was not declared in this scope
6 | long long md = LLONG_MAX;
| ^~~~~~~~~
sandd.cpp:1:1: note: ‘LLONG_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
+++ |+#include <climits>
1 |
sandd.cpp:17:24: error: ‘supply’ was not declared in this scope
17 | long long s1 = supply(mid1);
| ^~~~~~
sandd.cpp:18:24: error: ‘demand’ was not declared in this scope
18 | long long d1 = demand(mid1);
| ^~~~~~
sandd.cpp:22:27: error: ‘abs’ was not declared in this scope; did you mean ‘ans’?
22 | long long diff1 = abs(s1 - d1);
| ^~~
| ans