Problem cokemoresugar
User wrizz69
Submission Time 2024-12-11 11:30:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cokemoresugar.cpp:7:10: error: array bound is not an integer constant before ‘]’ token
7 | int arr[n];
| ^
cokemoresugar.cpp:8:11: error: array bound is not an integer constant before ‘]’ token
8 | int arr1[n];
| ^
cokemoresugar.cpp: In member function ‘void node::update(long long int, long long int)’:
cokemoresugar.cpp:33:16: error: ‘arr’ was not declared in this scope
33 | val = (X / arr[x]) * V;
| ^~~
cokemoresugar.cpp:33:20: error: ‘x’ was not declared in this scope
33 | val = (X / arr[x]) * V;
| ^
cokemoresugar.cpp: In member function ‘void node::update1(long long int, long long int)’:
cokemoresugar.cpp:49:16: error: ‘arr1’ was not declared in this scope
49 | val = (X / arr1[x]) * V;
| ^~~~
cokemoresugar.cpp:49:21: error: ‘x’ was not declared in this scope
49 | val = (X / arr1[x]) * V;
|