fork download
  1. #include <iostream>
  2. #include<bits/stdc++.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. double num,x;
  7. // cin>>num;
  8. double ceil(double x);
  9. x=2^(ceil(log(5)/log(2)));
  10. cout<<x<<endl;
  11. // your code goes here
  12. return 0;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:9:5: error: invalid operands of types ‘int’ and ‘double’ to binary ‘operator^’
  x=2^(ceil(log(5)/log(2)));
    ~^~~~~~~~~~~~~~~~~~~~~~
stdout
Standard output is empty