Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6901 赖梓乐 06买鸡腿 C++ Compile Error 0 MS 0 KB 384 2025-03-23 14:51:54

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ double a,b; scanf ("%d %d\n",a b); int d,s,h; d=b/a; s=d/3; h=s+d; printf("%d",h); return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:24: error: expected ')' before 'b'
     scanf ("%d %d\n",a b);
                        ^
Main.cc:9:25: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'double' [-Wformat=]
     scanf ("%d %d\n",a b);
                         ^
Main.cc:9:25: warning: format '%d' expects a matching 'int*' argument [-Wformat=]