Problem atomsplit
User Shauryaw
Submission Time 2025-06-19 09:28:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

atomsplit.cpp: In function ‘int main()’:
atomsplit.cpp:9:6: error: expected ‘;’ before ‘num’
9 | cin num;
| ^~~~
| ;
atomsplit.cpp:14:17: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
14 | while (times < num) {
| ^~~
| enum
atomsplit.cpp:16:3: error: expected ‘,’ or ‘;’ before ‘energy’
16 | energy += n;
| ^~~~~~