Problem basement
User Henries
Submission Time 2025-01-15 12:18:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

basement.cpp: In function ‘int main()’:
basement.cpp:7:5: error: ‘ll’ was not declared in this scope
7 | ll n;
| ^~
basement.cpp:8:12: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
8 | cin >> n;
| ^
| yn
basement.cpp:9:14: error: template argument 2 is invalid
9 | vector<ll> B(n, 0); // 0-based indexing
| ^
basement.cpp:9:22: error: expression list treated as compound expression in initializer [-fpermissive]
9 | vector<ll> B(n, 0); // 0-based indexing
| ^
basement.cpp:12:19: error: invalid types ‘int[int]’ for array subscript
12 | cin >> B[i];
| ^
basement.cpp:16:14: error: template argument 2 is invalid
16 | vector<ll> initial(n, 1);
| ^
basement.cpp:16:28: error: expression list treated as compound e