0_0_37764169_7693.cpp: In function 'void solve()':
0_0_37764169_7693.cpp:14:16: error: expected unqualified-id before '[' token
for (auto &[l, r] : a) cin >> l >> r, b.push_back(r);
^
0_0_37764169_7693.cpp:14:16: error: expected ';' before '[' token
0_0_37764169_7693.cpp:14:17: error: 'l' was not declared in this scope
for (auto &[l, r] : a) cin >> l >> r, b.push_back(r);
^
0_0_37764169_7693.cpp:14:20: error: 'r' was not declared in this scope
for (auto &[l, r] : a) cin >> l >> r, b.push_back(r);
^
0_0_37764169_7693.cpp: In lambda function:
0_0_37764169_7693.cpp:14:23: error: expected '{' before ':' token
for (auto &[l, r] : a) cin >> l >> r, b.push_back(r);
^
0_0_37764169_7693.cpp: In function 'void solve()':
0_0_37764169_7693.cpp:14:23: error: expected ';' before ':' token
0_0_37764169_7693.cpp:14:23: error: expected primary-expression before ':' token
0_0_37764169_7693.cpp:14:23: error: expected ')' before ':' token
0_0_37764169_7693.cpp:14:23: error: expected primary-expression before ':' token
0_0_37764169_7693.cpp:16:25: error: expected primary-expression before 'auto'
for (int i = 0, cnt;auto &x : b)
^
0_0_37764169_7693.cpp:16:25: error: expected ';' before 'auto'
0_0_37764169_7693.cpp:16:25: error: expected primary-expression before 'auto'
0_0_37764169_7693.cpp:16:25: error: expected ')' before 'auto'
0_0_37764169_7693.cpp:16:33: error: expected initializer before ':' token
for (int i = 0, cnt;auto &x : b)
^
0_0_37764169_7693.cpp:35:1: error: expected '}' at end of input
}
^
|