Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
65736 李雨昊 财务管理 C++ Compile Error 0 MS 0 KB 158 2024-02-03 21:02:01

Tests(0/0):


Code:

#include<iostream> #include<cstdio> using namespace std; int main() { double b,a = 0; for(12){ cin>>b; a+=b } cout<<a/12; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:8: error: expected ';' before ')' token
  for(12){
        ^
Main.cc:12:2: warning: statement has no effect [-Wunused-value]
  }
  ^
Main.cc:14:2: error: expected primary-expression before 'return'
  return 0;
  ^
Main.cc:14:2: error: expected ')' before 'return'
Main.cc:8:9: warning: unused variable 'b' [-Wunused-variable]
  double b,a = 0;
         ^