Problem swords
User MegaG
Submission Time 2025-10-27 18:12:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:13:8: error: ‘i’ was not declared in this scope
13 | int a[i];
| ^
swords.cpp:16:10: error: ‘a’ was not declared in this scope
16 | cin >> a[i] >> b[i];
| ^
swords.cpp:16:18: error: ‘b’ was not declared in this scope
16 | cin >> a[i] >> b[i];
| ^
swords.cpp:21:12: error: ‘a’ was not declared in this scope
21 | int c1 = a[i];
| ^
swords.cpp:22:12: error: ‘b’ was not declared in this scope
22 | int c2 = b[i];
| ^