Problem plantingpotatoes2
User asruby
Submission Time 2024-11-20 10:42:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

plantingpotatoes2.cpp: In function ‘int main()’:
plantingpotatoes2.cpp:57:19: error: ‘n’ was not declared in this scope
57 | int potatoes = n*(n+1)/2;
| ^