Problem | firefighting |
---|---|
User | shoryu386 |
Submission Time | 2024-03-01 15:26:27 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
firefighting.cpp:1:1: error: stray ‘\’ in program
1 | \#include <bits/stdc++.h>
| ^
firefighting.cpp:1:2: error: stray ‘#’ in program
1 | \#include <bits/stdc++.h>
| ^
firefighting.cpp:1:3: error: ‘include’ does not name a type
1 | \#include <bits/stdc++.h>
| ^~~~~~~
firefighting.cpp:7:1: error: ‘vector’ does not name a type
7 | vector<pair<int, int>> adj[MAX];
| ^~~~~~
firefighting.cpp:9:1: error: ‘pair’ does not name a type
9 | pair<int, int> dp[MAX];
| ^~~~
firefighting.cpp: In function ‘void dfs(long long int, long long int, long long int)’:
firefighting.cpp:19:16: error: ‘adj’ was not declared in this scope
19 | for (auto y : adj[x]){
| ^~~
firefighting.cpp:28:21: error: ‘dp’ was not declared in this scope; did you mean ‘p’?
28 | maxoverflow = max(dp[y.first].second - y.second, maxoverflow);
|