Problem | swords |
---|---|
User | fwyr |
Submission Time | 2025-01-18 18:38:51 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swords.cpp: In function ‘int main()’:
swords.cpp:18:43: error: ‘i’ was not declared in this scope
18 | if (v[n-2].first != v[n-1].first) r[v[i]]++;
| ^
swords.cpp:28:45: error: ‘i’ was not declared in this scope
28 | if (v[n-2].first != v[n-1].first && r[v[i]] != 0) t++;
| ^