fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. int k;
  7. cin >> n;
  8. while (n-- > 0) {
  9. cin >> k;
  10. cout << (1 << k) - 1 << endl;
  11. }
  12. return 0;
  13. }
Success #stdin #stdout 0s 15232KB
stdin
2
1
3
stdout
1
7