Problem | orchard |
---|---|
User | louisleehi |
Submission Time | 2023-01-24 14:11:59 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
orchard.cpp: In function ‘int main()’:
orchard.cpp:5:3: error: ‘cin’ was not declared in this scope
5 | cin >> n >> m;
| ^~~
orchard.cpp:30:16: error: ‘INT_MAX’ was not declared in this scope
30 | int minSum = INT_MAX;
| ^~~~~~~
orchard.cpp:1:1: note: ‘INT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
+++ |+#include <climits>
1 |
orchard.cpp:35:16: error: ‘min’ was not declared in this scope; did you mean ‘main’?
35 | curr = min(curr + p[i][k] - p[j][k], p[i][k] - p[j][k]);
| ^~~
| main
orchard.cpp:43:3: error: ‘cout’ was not declared in this scope
43 | cout << minSum + ones;
| ^~~~