Problem reading
User joshua2152
Submission Time 2023-04-14 17:09:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

reading.cpp: In function ‘int main()’:
reading.cpp:5:19: error: expected ‘;’ before ‘n’
5 | int n; int k; cin n >> k;
| ^~
| ;
reading.cpp:6:2: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
6 | ans = 0;
| ^~~
| abs
reading.cpp:9:3: error: ‘c’ was not declared in this scope
9 | c = w * p;
| ^