You are viewing a single comment's thread. Return to all comments →
using namespace std;
vector parseInts(string str) { // Complete this function vector result ; string digit ; int value; for (int i = 0 ;i
int main() { string str; cin >> str; vector integers = parseInts(str); for(int i = 0; i < integers.size(); i++) { cout << integers[i] << "\n"; }
return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
StringStream
You are viewing a single comment's thread. Return to all comments →
include
include
include
using namespace std;
vector parseInts(string str) { // Complete this function vector result ; string digit ; int value; for (int i = 0 ;i
int main() { string str; cin >> str; vector integers = parseInts(str); for(int i = 0; i < integers.size(); i++) { cout << integers[i] << "\n"; }
}