#include <iostream> #include <cmath> using namespace std; int main() { int n,m; cin >> n; int m=cbrt(n); if (m*m*m==n) cout <<"Yes"<<endl; else cout <<"No"<<endl; return 0; }
Standard input is empty
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; ^
Standard output is empty