Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
3178 吴奕希 算式问题 C++ Compile Error 0 MS 0 KB 351 2024-04-13 17:02:04

Tests(0/0):


Code:

#include void fun() { int a,b,c,d; for(a = 10;a < 100;a++){ b = a*8; c = a*9; d = b*100 + c + 1; if(b>=10 && b<100 && c>=100 && c < 1000 && d>=1000 && d<10000) { printf("%d\n",a); printf("%d\n",d); printf("%d\n",b); printf("%d\n",c+1); printf("%d\n",c); return; } } } void main() { fun(); }


Run Info:

Main.cc:1:10: error: #include expects "FILENAME" or 
 #include 
          ^
Main.cc: In function 'void fun()':
Main.cc:10:19: error: 'printf' was not declared in this scope
    printf("%d\n",a);
                   ^
Main.cc: At global scope:
Main.cc:21:11: error: '::main' must return 'int'
 void main() {
           ^