Problem zanesletters
User bribritt
Submission Time 2024-01-29 09:17:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

zanesletters.cpp: In function ‘int main()’:
zanesletters.cpp:6:17: error: the value of ‘k’ is not usable in a constant expression
6 | map<array<int,k>,int> m;
| ^
zanesletters.cpp:5:9: note: ‘long long int k’ is not const
5 | int n, k, ans = 0; cin >> n >> k;
| ^
zanesletters.cpp:6:17: note: in template argument for type ‘long unsigned int’
6 | map<array<int,k>,int> m;
| ^
zanesletters.cpp:6:22: error: template argument 1 is invalid
6 | map<array<int,k>,int> m;
| ^
zanesletters.cpp:6:22: error: template argument 3 is invalid
zanesletters.cpp:6:22: error: template argument 4 is invalid
zanesletters.cpp:8:14: error: the value of ‘k’ is not usable in a constant expression
8 | array<int,k> v;
| ^
zanesletters.cpp:5:9: note: ‘long long int k’ is not const