Main.cpp:1:7: error: 'l' does not name a type
1 | const l INF = 1LL<<15;
| ^
Main.cpp:3:1: error: 'array' does not name a type
3 | array<vector<l>, 2005> rows;
| ^~~~~
Main.cpp:4:1: error: 'array' does not name a type
4 | array<l, 2005> positions;
| ^~~~~
Main.cpp: In function 'int main()':
Main.cpp:10:5: error: 'l' was not declared in this scope
10 | l n, m;
| ^
Main.cpp:11:5: error: 'cin' was not declared in this scope
11 | cin >> n >> m;
| ^~~
Main.cpp:11:12: error: 'n' was not declared in this scope
11 | cin >> n >> m;
| ^
Main.cpp:11:17: error: 'm' was not declared in this scope
11 | cin >> n >> m;
| ^
Main.cpp:12:5: error: 'string' was not declared in this scope
12 | string row;
| ^~~~~~
Main.cpp:14:6: error: expected ';' before 'sum'
14 | l sum = 0;
| ^~~~
| ;
Main.cpp:17:16: error: 'row' was not declared in this scope
17 | cin >> row;
| ^~~
Main.cpp:19:32: error: 'rows' was not declared in this scope
19 | if (row[j] == '#') rows[i].push_back(j+1);
| ^~~~
Main.cpp:22:6: error: expected ';' before 'dist_to_left'
22 | l dist_to_left;
| ^~~~~~~~~~~~~
| ;
Main.cpp:25:9: error: 'positions' was not declared in this scope
25 | positions.fill(0);
| ^~~~~~~~~
Main.cpp:28:37: error: 'INF' was not declared in this scope
28 | if (positions[k] != INF && rows[k][positions[k]] < j) {
| ^~~
Main.cpp:28:44: error: 'rows' was not declared in this scope
28 | if (positions[k] != INF && rows[k][positions[k]] < j) {
| ^~~~
Main.cpp:34:33: error: 'INF' was not declared in this scope
34 | if (positions[i] == INF) continue;
| ^~~
Main.cpp:35:13: error: 'dist_to_left' was not declared in this scope
35 | dist_to_left = j - rows[i][positions[i]-1];
| ^~~~~~~~~~~~
Main.cpp:35:32: error: 'rows' was not declared in this scope
35 | dist_to_left = j - rows[i][positions[i]-1];
| ^~~~
Main.cpp:40:14: error: expected ';' before 'c'
40 | l c = 0;
| ^~
| ;
Main.cpp:43:17: error: 'assert' was not declared in this scope
43 | assert(k > 0);
| ^~~~~~
Main.cpp:1:1: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
+++ |+#include <cassert>
1 | const l INF = 1LL<<15;
Main.cpp:44:37: error: 'INF' was not declared in this scope
44 | if (positions[k] == INF) {
| ^~~
Main.cpp:48:21: error: 'c' was not declared in this scope
48 | if (c == 0) {
| ^
Main.cpp:63:17: error: 'c' was not declared in this scope
63 | c++;
| ^
Main.cpp:65:13: error: 'c' was not declared in this scope
65 | c = 0;
| ^
Main.cpp:67:17: error: 'assert' was not declared in this scope
67 | assert(k <= n);
| ^~~~~~
Main.cpp:67:17: note: 'assert' is defined in header '<cassert>'; did you forget to '#include <cassert>'?
Main.cpp:68:37: error: 'INF' was not declared in this scope
68 | if (positions[k] == INF) {
| ^~~
Main.cpp:90:17: error: 'sum' was not declared in this scope
90 | sum++;
| ^~~
Main.cpp:98:5: error: 'cout' was not declared in this scope
98 | cout << sum << endl;
| ^~~~
Main.cpp:98:13: error: 'sum' was not declared in this scope
98 | cout << sum << endl;
| ^~~
Main.cpp:98:20: error: 'endl' was not declared in this scope
98 | cout << sum << endl;
| ^~~~