Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- using namespace std;
- vector<int> f(int a )
- {
- if (a<=0)
- throw "ilegal";
- vector<int> rez;
- while (a>0)
- {
- rez.push_back(a%10);
- a = a /10;
- }
- return rez;
- }
- int main()
- {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement