Problem foreveralone
User 123456789
Submission Time 2023-04-28 14:14:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foreveralone.cpp: In function ‘int32_t main()’:
foreveralone.cpp:6:33: error: ‘nn’ does not name a type; did you mean ‘n’?
6 | int n, m; cin >> n >> m; const nn = n;
| ^~
| n
foreveralone.cpp:8:13: error: ‘nn’ was not declared in this scope; did you mean ‘n’?
8 | array<int, nn> cat; cat.fill(1);
| ^~
| n
foreveralone.cpp:8:15: error: template argument 2 is invalid
8 | array<int, nn> cat; cat.fill(1);
| ^
foreveralone.cpp:8:26: error: request for member ‘fill’ in ‘cat’, which is of non-class type ‘int’
8 | array<int, nn> cat; cat.fill(1);
| ^~~~
foreveralone.cpp:12:11: error: invalid types ‘int[long long int]’ for array subscript
12 | cat[a-1] = 0; cat[b-1] = 0;
| ^
foreveralone.cpp:12:25: error: invali