Main.cpp: In function 'int main()':
Main.cpp:7:37: error: 'n' was not declared in this scope
7 | for (int i = 0; i < n; ++i) cin >> I.first >> I.second;
| ^
Main.cpp:7:54: error: 'class std::vector<std::pair<int, int> >' has no member named 'first'
7 | for (int i = 0; i < n; ++i) cin >> I.first >> I.second;
| ^~~~~
Main.cpp:7:65: error: 'class std::vector<std::pair<int, int> >' has no member named 'second'
7 | for (int i = 0; i < n; ++i) cin >> I.first >> I.second;
| ^~~~~~
Main.cpp:10:25: error: 'flowers' was not declared in this scope
10 | if (j - max(flowers[j].first, flowers[i].second) > i) {
| ^~~~~~~
Main.cpp:11:17: error: 'dp' was not declared in this scope; did you mean 'dup'?
11 | dp[i]= max(1, max(dp[i], dp[j] + 1));
| ^~
| dup