Problem plantingpotatoes2
User Haocheng
Submission Time 2024-11-19 14:17:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

plantingpotatoes2.cpp: In function ‘int main()’:
plantingpotatoes2.cpp:11:19: error: expected ‘;’ before ‘while’
11 | total=(a*(a+1))/2
| ^
| ;
12 | while(total>tax){
| ~~~~~