Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
1119 李恩龙 14慈善募捐 C++ Compile Error 0 MS 0 KB 225 2023-07-15 15:30:39

Tests(0/0):


Code:

#include <iostream> using namespace std; int main() { int n,m; int i = 0; for (i = 0;i <= 1000;i++) { cin >> n; if(i > 100000) { break; } m = m + n; } printf("%.2lf",m/i 1) ; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:17:2: error: expected ')' before numeric constant
  1) ;
  ^
Main.cc:17:3: warning: format '%lf' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
  1) ;
   ^