Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115588 周宸宇 完美立方 C++ Compile Error 0 MS 0 KB 652 2025-03-31 20:37:59

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int N; cin>>N; for(int a=2;a<n;a++){ for(int b=2;b<a;b++){ for(int c=b;c<a;c++){ for(int d=c;d<a;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:10:19: error: 'n' was not declared in this scope
     for(int a=2;a