fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4. int main()
  5. {
  6. int n,m;
  7. cin >> n;
  8. int m=cbrt(n);
  9. if (m*m*m==n)
  10. cout <<"Yes"<<endl;
  11. else
  12. cout <<"No"<<endl;
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:8:6: error: redeclaration of 'int m'
  int m=cbrt(n);
      ^
prog.cpp:6:8: note: 'int m' previously declared here
  int n,m;
        ^
stdout
Standard output is empty