Problem visitor
User Kiameimon
Submission Time 2024-12-10 17:00:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

visitor.cpp: In function ‘int main()’:
visitor.cpp:21:42: error: ‘using pii = struct std::pair<int, int>’ {aka ‘struct std::pair<int, int>’} has no member named ‘l’
21 | pii arr[k]; for(pii &i : arr) cin >> i.l >> i.r;
| ^
visitor.cpp:21:49: error: ‘using pii = struct std::pair<int, int>’ {aka ‘struct std::pair<int, int>’} has no member named ‘r’
21 | pii arr[k]; for(pii &i : arr) cin >> i.l >> i.r;
| ^
visitor.cpp:24:8: error: ‘using pii = struct std::pair<int, int>’ {aka ‘struct std::pair<int, int>’} has no member named ‘l’
24 | S[i.l]++;
| ^
visitor.cpp:25:8: error: ‘using pii = struct std::pair<int, int>’ {aka ‘struct std::pair<int, int>’} has no member named ‘r’
25 | E[i.r+1]++;
| ^