Problem construct
User hwy
Submission Time 2023-06-27 00:40:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

construct.cpp: In function ‘int main()’:
construct.cpp:8:16: error: ‘ll’ was not declared in this scope
8 | vector<vector<ll>> adjlst(N+1);
| ^~
construct.cpp:8:16: error: template argument 1 is invalid
construct.cpp:8:16: error: template argument 2 is invalid
construct.cpp:8:18: error: template argument 1 is invalid
8 | vector<vector<ll>> adjlst(N+1);
| ^~
construct.cpp:8:18: error: template argument 2 is invalid
construct.cpp:13:14: error: invalid types ‘int[int]’ for array subscript
13 | adjlst[temp].push_back(temp1);
| ^
construct.cpp:15:27: error: invalid operands of types ‘__gnu_cxx::__promote_2<int, int, double, double>::__type’ {aka ‘double’} and ‘const int’ to binary ‘operator%’
15 | cout << (N*pow(N-1, M-1))%MOD;
| ~~~~~~~~~~~~~~~~~^~~~
| | |
| |