Problem swords
User toditisdoingthisforfun
Submission Time 2026-01-11 15:47:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp:3:26: error: ‘b’ has not been declared
3 | void swordcheck(int a[], b[]);
| ^
swords.cpp:17:8: error: expected constructor, destructor, or type conversion before ‘(’ token
17 | printf("%i", k);
| ^
swords.cpp:18:1: error: expected declaration before ‘}’ token
18 | }
| ^
swords.cpp: In function ‘void swordcheck(int*, int*)’:
swords.cpp:24:8: error: ‘d’ was not declared in this scope
24 | int y=d[0];
| ^
swords.cpp:25:18: error: ‘n’ was not declared in this scope
25 | for (int j=0; j<n; j++) //for each sword
| ^
swords.cpp:33:7: error: ‘v’ was not declared in this scope
33 | x[v]=a[j];
| ^
swords.cpp:39:5: error: ‘store’ was not declared in this scope
39 | store[k]=a[j];
| ^~~~~