Problem | selectingintervals |
---|---|
User | PlayVoltz |
Submission Time | 2024-01-18 20:27:43 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
selectingintervals.cpp: In function ‘int32_t main()’:
selectingintervals.cpp:45:24: error: expected primary-expression before ‘for’
45 | while (s--)cin>>a>>b, for (int i=a; i<=b; ++i)p[i]=min(p[i]-1, a);
| ^~~
selectingintervals.cpp:45:38: error: ‘i’ was not declared in this scope
45 | while (s--)cin>>a>>b, for (int i=a; i<=b; ++i)p[i]=min(p[i]-1, a);
| ^