Problem swords
User Teeskit
Submission Time 2026-01-29 16:34:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:13:6: error: redeclaration of ‘int atk’
13 | int atk = v.back().first;
| ^~~
swords.cpp:7:6: note: ‘int atk’ previously declared here
7 | int atk = 0;
| ^~~
swords.cpp:13:12: error: ‘v’ was not declared in this scope
13 | int atk = v.back().first;
| ^
swords.cpp:14:6: error: redeclaration of ‘int df’
14 | int df = v.back().second;
| ^~
swords.cpp:8:6: note: ‘int df’ previously declared here
8 | int df = 0;
| ^~