Problem platonic11
User JoelToh
Submission Time 2026-02-09 16:42:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic11.cpp: In function ‘int main()’:
platonic11.cpp:6:11: error: ‘b’ was not declared in this scope
6 | cin >> n,b;
| ^
platonic11.cpp:7:7: error: ‘i’ was not declared in this scope
7 | for (i = 0, i < n , i++) {
| ^
platonic11.cpp:12:1: error: expected primary-expression before ‘}’ token
12 | }
| ^
platonic11.cpp:11:22: error: expected ‘)’ before ‘}’ token
11 | cout << c * (k + 1);
| ^
| )
12 | }
| ~
platonic11.cpp:7:6: note: to match this ‘(’
7 | for (i = 0, i < n , i++) {
| ^
platonic11.cpp:12:1: error: expected primary-expression before ‘}’ token
12 | }
| ^