Код: Выделить всё
#include
#include
#include
using namespace std;
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n;
std::cin >> n;
cout > a >> b;
arr[i] = {a, b};
}
arr.resize(n);
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79385385/c-exc-bad-accesscode-1-on-using-stdsort[/url]
Мобильная версия