Problem | swords |
---|---|
User | fueh |
Submission Time | 2024-01-29 16:43:26 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swords.cpp: In function ‘int main()’:
swords.cpp:18:78: error: invalid types ‘long long int[long long int]’ for array subscript
18 | if (attac_check <= attack[a] && defence_check <= defence[a] && swords[b] != swords[a]) {
| ^
swords.cpp:18:91: error: invalid types ‘long long int[long long int]’ for array subscript
18 | if (attac_check <= attack[a] && defence_check <= defence[a] && swords[b] != swords[a]) {
| ^
swords.cpp:20:16: error: request for member ‘erase’ in ‘swords’, which is of non-class type ‘long long int’
20 | swords.erase(b);
| ^~~~~
swords.cpp:26:1: error: expected ‘}’ at end of input
26 | }
| ^
swords.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^