Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
63912 杨莹斌 完美立方 C++ Compile Error 0 MS 0 KB 357 2024-01-20 11:52:40

Tests(0/0):


Code:

#include <bits/stdc++.h>. 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){ pintf("Cube = %d, Triple = (%d,%d,%d)\n ",a,b,c,d) } } } } } return 0; }


Run Info:

Main.cc:1:25: warning: extra tokens at end of #include directive
 #include .
                         ^
Main.cc: In function 'int main()':
Main.cc:13:56: error: 'pintf' was not declared in this scope
       pintf("Cube = %d, Triple = (%d,%d,%d)\n ",a,b,c,d)
                                                        ^