Problem | swords |
---|---|
User | thelusidian |
Submission Time | 2025-01-23 13:14:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swords.cpp: In function ‘int main()’:
swords.cpp:18:38: error: expected ‘,’ before ‘[’ token
18 | if (swords[index].first != [swords[index2].first){
| ^
| ,
swords.cpp:18:38: error: expected identifier before ‘[’ token
swords.cpp:18:53: error: expected ‘]’ before ‘{’ token
18 | if (swords[index].first != [swords[index2].first){
| ^
| ]
swords.cpp: In lambda function:
swords.cpp:19:5: error: ‘usefulSwords’ is not captured
19 | usefulSwords++
| ^~~~~~~~~~~~
swords.cpp:18:53: note: the lambda has no capture-default
18 | if (swords[index].first != [swords[index2].first){
| ^
swords.cpp:5:47: note: ‘long int usefulSwords’ declared here
5 | lon