Problem | lunchcombo |
---|---|
User | Henries |
Submission Time | 2024-11-26 18:27:06 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchcombo.cpp: In function ‘std::pair<long long int, long long int> check(long long int)’:
lunchcombo.cpp:17:29: error: request for member ‘begin’ in ‘s’, which is of non-class type ‘long long int’
17 | cost += mains[i] * (it-s.begin()) + prefixsides[it-s.begin()-1];
| ^~~~~
lunchcombo.cpp:17:57: error: request for member ‘begin’ in ‘s’, which is of non-class type ‘long long int’
17 | cost += mains[i] * (it-s.begin()) + prefixsides[it-s.begin()-1];
| ^~~~~