Problem summit
User Dolphy
Submission Time 2023-05-01 16:52:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

summit.cpp: In function ‘int main()’:
summit.cpp:8:2: error: expected initializer before ‘int’
8 | int d, k, index, total, iterate;
| ^~~
summit.cpp:10:9: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
10 | cin >> m >> d;
| ^
| tm
summit.cpp:10:14: error: ‘d’ was not declared in this scope
10 | cin >> m >> d;
| ^
summit.cpp:11:7: error: ‘k’ was not declared in this scope
11 | for (k=m/d; !possible; k++){
| ^
summit.cpp:12:3: error: ‘total’ was not declared in this scope
12 | total = k;
| ^~~~~
summit.cpp:13:3: error: ‘iterate’ was not declared in this scope
13 | iterate = 0;
| ^~~~~~~
summit.cpp:15:4: error: ‘index’ was not declared in this scope
15 | index = k;
| ^~~~~
summit.cpp:29:10: error: ‘k’ was not declared in this scope
29 | cout << k-1