Problem reading
User YH
Submission Time 2024-02-07 21:06:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

reading.cpp: In function ‘int main()’:
reading.cpp:17:3: error: ‘pages’ was not declared in this scope
17 | pages[x] = w*p;
| ^~~~~
reading.cpp:24:24: error: ‘pages_per_book’ cannot be used as a function
24 | k -= pages_per_book(i);
| ^