0_0_39600874_31395.cpp: In function 'void solve()':
0_0_39600874_31395.cpp:7:5: error: 'cin' was not declared in this scope
7 | cin >> n >> m;
| ^~~
0_0_39600874_31395.cpp:10:5: error: 'vector' was not declared in this scope
10 | vector<int> dp(m + 1, -1);
| ^~~~~~
0_0_39600874_31395.cpp:10:12: error: expected primary-expression before 'int'
10 | vector<int> dp(m + 1, -1);
| ^~~
0_0_39600874_31395.cpp:11:5: error: 'dp' was not declared in this scope
11 | dp[1] = m;
| ^~
0_0_39600874_31395.cpp:13:16: error: expected primary-expression before 'int'
13 | vector<int> ndp(m + 1, -1);
| ^~~
0_0_39600874_31395.cpp:16:25: error: 'max' was not declared in this scope
16 | int L = max(l[i], j);
| ^~~
0_0_39600874_31395.cpp:17:25: error: 'min' was not declared in this scope
17 | int R = min(r[i], dp[j]);
| ^~~
0_0_39600874_31395.cpp:19:21: error: 'ndp' was not declared in this scope
19 | ndp[L] = max(ndp[L], R - t[i]);// È¡×îÓÅ
| ^~~
0_0_39600874_31395.cpp:24:14: error: 'ndp' was not declared in this scope
24 | dp = ndp;
| ^~~
0_0_39600874_31395.cpp:27:36: error: 'cout' was not declared in this scope
27 | if (dp[i] >= i - 1) return cout << "YES\n", void();
| ^~~~
0_0_39600874_31395.cpp:28:5: error: 'cout' was not declared in this scope
28 | cout << "NO\n";
| ^~~~
|