Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
132631 丁昭臣 02买铅笔 C++ Compile Error 0 MS 0 KB 177 2025-10-11 18:58:09

Tests(0/0):


Code:

#include<cstdio> #include<iostream> using namespace std; int main(){ long long a,b,c,d; cin>>a>>b>>c>>d; printf("%.1lf %.1lf",b,d); cout<<(c+d)/(a+b) return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:7:26: warning: format '%lf' expects argument of type 'double', but argument 2 has type 'long long int' [-Wformat=]
  printf("%.1lf %.1lf",b,d);
                          ^
Main.cc:7:26: warning: format '%lf' expects argument of type 'double', but argument 3 has type 'long long int' [-Wformat=]
Main.cc:9:2: error: expected ';' before 'return'
  return 0; 
  ^