fork download
  1. #include <iostream>
  2. #include<bits/stdc++.h>
  3. using namespace std;
  4. long long i, j, n ,k ,a[1000005],t,p,c[1000005],b[1000005],z;
  5. map<long long ,long long > mp;
  6. int main() {
  7. cin >> t ;
  8.  
  9. while(t--)
  10. {
  11. cin >> n ;
  12. n=n%33;
  13. z=pow(2,33);cout<<z;
  14. if(n==0) z=pow(2,33);cout<<z;
  15. else
  16. {
  17. z=1;for(i=1;i<=n;i++)
  18. {
  19. z=z*2;
  20. }
  21. }
  22. z--;
  23. cout<<z;
  24.  
  25. cout<<endl;
  26.  
  27. }
  28. // your code goes here
  29. return 0;
  30. }
Compilation error #stdin compilation error #stdout 0s 39488KB
stdin
3
1
2
33
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:15:3: error: ‘else’ without a previous ‘if’
   else
   ^~~~
stdout
Standard output is empty