fork download
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int divide_power(int x,int k){
  5. x=x>>k;
  6. return x;
  7. }
  8.  
  9. int main(){
  10.  
  11. int x,k;
  12. cin>>x>>k;
  13.  
  14. cout<<divide_power(x,k);
  15. }
Success #stdin #stdout 0s 3416KB
stdin
Standard input is empty
stdout
-131463