#include<iostream> #include<algorithm> #include<string> using namespace std; int main(){ string n, m; cin >> n >> m; int m1 = stoi(m); int n1 = stoi(n); cout << n1 / m1 << "\n" << n1 % m1; return 0; }
99999999999999999999999999999999999999999999999999999999999999999999999999 9999999999999999999999999999999999999
Standard output is empty
terminate called after throwing an instance of 'std::out_of_range' what(): stoi