0_0_37851162_1437.cpp: In function 'int main()':
0_0_37851162_1437.cpp:38:12: error: expected unqualified-id before '[' token
for(auto&[l,r]:rng){cin>>l>>r;r++;}
^
0_0_37851162_1437.cpp:38:12: error: expected ';' before '[' token
0_0_37851162_1437.cpp:38:13: error: capture of non-variable 'int l(pii&)'
for(auto&[l,r]:rng){cin>>l>>r;r++;}
^
0_0_37851162_1437.cpp:9:5: note: 'int l(pii&)' declared here
int l(pii&a){return a.first;};
^
0_0_37851162_1437.cpp:38:15: error: capture of non-variable 'int r(pii&)'
for(auto&[l,r]:rng){cin>>l>>r;r++;}
^
0_0_37851162_1437.cpp:10:5: note: 'int r(pii&)' declared here
int r(pii&a){return a.second;};
^
0_0_37851162_1437.cpp: In lambda function:
0_0_37851162_1437.cpp:38:17: error: expected '{' before ':' token
for(auto&[l,r]:rng){cin>>l>>r;r++;}
^
0_0_37851162_1437.cpp: In function 'int main()':
0_0_37851162_1437.cpp:38:17: error: expected ';' before ':' token
0_0_37851162_1437.cpp:38:17: error: expected primary-expression before ':' token
0_0_37851162_1437.cpp:38:17: error: expected ')' before ':' token
0_0_37851162_1437.cpp:38:17: error: expected primary-expression before ':' token
0_0_37851162_1437.cpp:39:27: error: 'sort' was not declared in this scope
sort(begin(rng),end(rng));
^
0_0_37851162_1437.cpp:43:12: error: expected unqualified-id before '[' token
for(auto&[l,r]:rng)
^
0_0_37851162_1437.cpp:43:12: error: expected ';' before '[' token
0_0_37851162_1437.cpp:43:13: error: capture of non-variable 'int l(pii&)'
for(auto&[l,r]:rng)
^
0_0_37851162_1437.cpp:9:5: note: 'int l(pii&)' declared here
int l(pii&a){return a.first;};
^
0_0_37851162_1437.cpp:43:15: error: capture of non-variable 'int r(pii&)'
for(auto&[l,r]:rng)
^
0_0_37851162_1437.cpp:10:5: note: 'int r(pii&)' declared here
int r(pii&a){return a.second;};
^
0_0_37851162_1437.cpp: In lambda function:
0_0_37851162_1437.cpp:43:17: error: expected '{' before ':' token
for(auto&[l,r]:rng)
^
0_0_37851162_1437.cpp: In function 'int main()':
0_0_37851162_1437.cpp:43:17: error: expected ';' before ':' token
0_0_37851162_1437.cpp:43:17: error: expected primary-expression before ':' token
0_0_37851162_1437.cpp:43:17: error: expected ')' before ':' token
0_0_37851162_1437.cpp:43:17: error: expected primary-expression before ':' token
|