Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4458 李宇轩 水仙花数 C++ Compile Error 0 MS 0 KB 350 2024-08-18 17:38:11

Tests(0/0):


Code:

#include <stdio.h> #include <math.h> int main() { int i, g, s, b, sum; for (i = 100; i <= 999; i++) { g = i % 10; s = (i / 10) % 10; b = i / 100; sum = pow(g, 3) + pow(s, 3) + pow(b, 3); if (i == sum) { printf("%d\n", i); } }


Run Info:

Main.cc: In function 'int main()':
Main.cc:16:5: error: expected '}' at end of input
     }
     ^