Problem swords
User Fuhrer101
Submission Time 2024-02-17 11:36:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:8:14: error: expected ‘;’ before ‘int’
8 | total = 0
| ^
| ;
9 | int maxAtk[2] = {0, 0};
| ~~~
swords.cpp:19:20: error: ‘maxAtk’ was not declared in this scope
19 | if (atk >= maxAtk[0]) {
| ^~~~~~
swords.cpp:44:20: error: ‘maxAtk’ was not declared in this scope
44 | if ((tempAtk == maxAtk[0] && tempDf == maxAtk[1]) || (tempAtk == maxDf[0] && tempDf == maxDf[1])){
| ^~~~~~
swords.cpp:64:3: error: ‘maxAtk’ was not declared in this scope
64 | maxAtk[0] = tempMaxAtk[0];
| ^~~~~~