#include <iostream> #include<bits/stdc++.h> using namespace std; int main() { double num,x; // cin>>num; double ceil(double x); x=2^(ceil(log(5)/log(2))); cout<<x<<endl; // your code goes here return 0; }
Standard input is empty
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))); ~^~~~~~~~~~~~~~~~~~~~~~
Standard output is empty