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