fork download
  1. #include <bits/stdc++.h>
  2. #define IOS ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
  3. using namespace std;
  4.  
  5. int my_pow(int value, int p) {
  6. if (p == 0) return 1;
  7. return value * my_pow(value, p - 1);
  8. }
  9.  
  10. void solve() {
  11. cout << my_pow(7,3) << endl;
  12.  
  13. }
  14.  
  15. int main() {
  16. IOS;
  17. solve();
  18. return 0;
  19. }
Success #stdin #stdout 0.01s 5252KB
stdin
Standard input is empty
stdout
343