Problem shamelessad4
User justin271828
Submission Time 2024-12-11 09:56:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

shamelessad4.cpp: In constructor ‘pow(long long int, int)::node::node(int, int)’:
shamelessad4.cpp:26:12: error: use of local variable with automatic storage from containing function
26 | valS = A[s];
| ^
shamelessad4.cpp:17:4: note: ‘long long int A [271828]’ declared here
17 | l2 A[271828];
| ^
shamelessad4.cpp:27:12: error: use of local variable with automatic storage from containing function
27 | valP = A[s];}
| ^
shamelessad4.cpp:17:4: note: ‘long long int A [271828]’ declared here
17 | l2 A[271828];
| ^
shamelessad4.cpp: In function ‘long long int pow(long long int, int)’:
shamelessad4.cpp:62:49: error: expected ‘}’ at end of input
62 | return prod(l->qP(x, y), r->qP(x, y));}} *root;
| ^
shamelessad4.cpp:10:21: note: to match this ‘{’
10 | l2 pow(l2 x, int k) { //returns x^k;
|