Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. using namespace std;
  5.  
  6. vector<int> f(int a )
  7. {
  8.     if (a<=0)
  9.         throw "ilegal";
  10.     vector<int> rez;
  11.     while (a>0)
  12.         {
  13.             rez.push_back(a%10);
  14.             a = a /10;
  15.         }
  16.         return rez;
  17.  
  18. }
  19.  
  20. int main()
  21. {
  22.  
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement