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

Tests(0/0):


Code:

#include <bits/stdc++.h>. using namespace std; int main (){ int m,n; cin>>m>>n; int flag = 0; for(int i = m;i <= n;i++){ int g = i % 10; int s = i / 10 % 10; int b = i / 10 / 10 % 10; if(g*g*g + s*s*s + b*b*b == ){ cout << i <<" "; flag = 1; } } if(flag = 0){ cout << "no"; } 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:31: error: expected primary-expression before ')' token
   if(g*g*g + s*s*s + b*b*b == ){
                               ^
Main.cc:18:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  if(flag = 0){
             ^