0_0_39370782_9382.cpp:2:5: error: 'cin' does not name a type
2 | cin >> n >> m;
| ^~~
0_0_39370782_9382.cpp:3:5: error: expected unqualified-id before 'for'
3 | for (int t = 0; t < n; ++t)cin >> v[t];
| ^~~
0_0_39370782_9382.cpp:3:21: error: 't' does not name a type
3 | for (int t = 0; t < n; ++t)cin >> v[t];
| ^
0_0_39370782_9382.cpp:3:28: error: expected unqualified-id before '++' token
3 | for (int t = 0; t < n; ++t)cin >> v[t];
| ^~
0_0_39370782_9382.cpp:4:5: error: expected unqualified-id before 'for'
4 | for (int i = n - 1; i >= 0; --i) {
| ^~~
0_0_39370782_9382.cpp:4:25: error: 'i' does not name a type
4 | for (int i = n - 1; i >= 0; --i) {
| ^
0_0_39370782_9382.cpp:4:33: error: expected unqualified-id before '--' token
4 | for (int i = n - 1; i >= 0; --i) {
| ^~
0_0_39370782_9382.cpp:8:5: error: expected unqualified-id before 'for'
8 | for (int t = 1; t <= m; ++t)for (int y = 1; y <= m; ++y) {
| ^~~
0_0_39370782_9382.cpp:8:21: error: 't' does not name a type
8 | for (int t = 1; t <= m; ++t)for (int y = 1; y <= m; ++y) {
| ^
0_0_39370782_9382.cpp:8:29: error: expected unqualified-id before '++' token
8 | for (int t = 1; t <= m; ++t)for (int y = 1; y <= m; ++y) {
| ^~
0_0_39370782_9382.cpp:8:49: error: 'y' does not name a type
8 | for (int t = 1; t <= m; ++t)for (int y = 1; y <= m; ++y) {
| ^
0_0_39370782_9382.cpp:8:57: error: expected unqualified-id before '++' token
8 | for (int t = 1; t <= m; ++t)for (int y = 1; y <= m; ++y) {
| ^~
0_0_39370782_9382.cpp:20:5: error: 'cout' does not name a type
20 | cout << ans - 1 << endl;
| ^~~~
|