Problem | fraud |
---|---|
User | Josh28acc2 |
Submission Time | 2024-02-22 12:56:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fraud.cpp: In function ‘void solve()’:
fraud.cpp:34:21: error: ‘ld’ was not declared in this scope; did you mean ‘ll’?
34 | ll n; cin >> n; ld a[n], b[n];
| ^~
| ll
fraud.cpp:35:39: error: ‘a’ was not declared in this scope
35 | for (ll q = 0; q < n; q++) cin >> a[q];
| ^
fraud.cpp:36:39: error: ‘b’ was not declared in this scope
36 | for (ll q = 0; q < n; q++) cin >> b[q];
| ^
fraud.cpp:37:7: error: expected ‘;’ before ‘minn’
37 | ld minn = 1e12, maxn = 0;
| ^~~~~
| ;
fraud.cpp:39:13: error: ‘b’ was not declared in this scope
39 | if (b[q] > b[q+1]) {
| ^
fraud.cpp:40:13: error: ‘maxn’ was not declared in this scope
40 | maxn = max(maxn, (ld)(a[q+1] - a[q])/(ld)(b[q] - b