fork download
  1. /******************************************************************************
  2.  
  3. Welcome to GDB Online.
  4. GDB online is an online compiler and debugger tool for C/C++.
  5. Code, Compile, Run and Debug online from anywhere in world.
  6.  
  7. *******************************************************************************/
  8. #include <iostream>
  9. using namespace std;
  10.  
  11. #include <iostream>
  12. using namespace std;
  13.  
  14. int DigitsExtract(int Dg[],int number)
  15. {
  16. int i=0;
  17. while(number!=0)
  18. {
  19. Dg[i]=(number)%10;
  20. i++;
  21. number=number/(10*i);
  22. }
  23. return i;
  24. }
  25.  
  26.  
  27.  
  28.  
  29. int main()
  30. {
  31. int number;
  32. int A[number];
  33. cout <<"pss";
  34. cin>>number;
  35. DigitsExtract(A,number);
  36.  
  37. return 0;
  38. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
pss