Problem swords
User PerihelionfromAphelion
Submission Time 2026-08-21 22:50:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int32_t main()’:
swords.cpp:13:7: error: ‘i’ was not declared in this scope
13 | for (i = 0; i < n; i++) {
| ^
swords.cpp:19:7: error: ‘i’ was not declared in this scope
19 | for (i = n - 1; i >= 0; i--) {
| ^