Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
64626 周梓易 完美立方 C++ Compile Error 0 MS 0 KB 357 2024-01-21 17:19:10

Tests(0/0):


Code:

# include<iostream> # include<cstdio> using namespace std; int main(){ int n; cin>>n; for(int a=1;a<=n;a++){ for(int b=1;b<=i;b++){ for(int c=m;c<=i;c++){ for(int d=c;d<=i;d++){ if(a*a*a==b*b*b+c*c*c+d*d*d){ cout<<"Cube = "<<a<<", Triple("<<b<<","<<c<<","<<d<<")"<<endl; } } } } } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:18: error: 'i' was not declared in this scope
   for(int b=1;b<=i;b++){
                  ^
Main.cc:10:14: error: 'm' was not declared in this scope
    for(int c=m;c<=i;c++){
              ^