| Problem | monsters3 |
|---|---|
| User | phoenixai0 |
| Submission Time | 2025-12-01 17:50:26 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
monsters3.cpp: In function ‘int main()’:
monsters3.cpp:10:31: error: expected ‘;’ before ‘}’ token
10 | for (l& x : p) {cin >> x; x--}
| ^
| ;
monsters3.cpp:12:31: error: expected ‘;’ before ‘}’ token
12 | for (l& x : t) {cin >> x; x--}
| ^
| ;
monsters3.cpp:29:91: error: no match for ‘operator!=’ (operand types are ‘bool’ and ‘std::vector<long long int>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> >’})
29 | for (l j = t[i]; j >= 0; j--) {auto it = find(p.begin(), p.end(), j) != p.end(); if (it != p.end() && i <= a[i]) y++;}
| ~~ ^~ ~~~~~~~
|