Problem platonic12
User JoelToh
Submission Time 2026-02-09 17:49:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic12.cpp: In function ‘int main()’:
platonic12.cpp:7:7: error: ‘i’ was not declared in this scope
7 | for (i = 0; i < a; i ++) {
| ^
platonic12.cpp:10:7: error: expected ‘;’ before ‘}’ token
10 | d++
| ^
| ;
11 | }
| ~
platonic12.cpp:13:9: error: expected ‘;’ before ‘e’
13 | c = b
| ^
| ;
14 | e = e + (d * (d + 1) / 2)
| ~
platonic12.cpp:17:11: error: expected ‘;’ before ‘}’ token
17 | cout << e
| ^
| ;
18 | }
| ~