Problem selectingintervals
User PlayVoltz
Submission Time 2024-01-18 20:27:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

selectingintervals.cpp: In function ‘int32_t main()’:
selectingintervals.cpp:19:13: error: expected primary-expression before ‘long’
19 | #define int long long
| ^~~~
selectingintervals.cpp:45:29: note: in expansion of macro ‘int’
45 | while (s--)for (cin>>a>>b, 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--)for (cin>>a>>b, int i=a; i<=b; ++i)p[i]=min(p[i]-1, a);
| ^