Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115659 李钧皓 05买水果 C++ Compile Error 0 MS 0 KB 246 2025-04-02 14:50:01

Tests(0/0):


Code:

int main(){ int a=5,b=8,c=12,a1,a2,b1,b2,c1,c2; float p=(a+b+c)/3.0; printf("%.3f\n",p); a1=39/5; a2=39%5; b1=39/8; b2=39%8; c1=39/12; c2=39%12; printf("%d %d\n",a1,a2); printf("%d %d\n",b1,b2); printf("%d %d\n",c1,c2); }


Run Info:

Main.cc: In function 'int main()':
Main.cc:4:19: error: 'printf' was not declared in this scope
  printf("%.3f\n",p);
                   ^