Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
126104 徐浩天 输出学生成绩 C++ Compile Error 0 MS 0 KB 271 2025-07-16 12:04:24

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a[4][5]={},sum=0,h; for(int 1=0;i<3;i++) for(int j=1;j<4;j++){ cin>>a[i][j]; sum+=a[i][j]; } printf("%.2f",sum*1.0/12); for(int j=1;j<4;j++){ cout<<a[h][j]<<" "; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:10: error: expected unqualified-id before numeric constant
  for(int 1=0;i<3;i++)
          ^
Main.cc:6:10: error: expected ';' before numeric constant
Main.cc:6:11: error: lvalue required as left operand of assignment
  for(int 1=0;i<3;i++)
           ^
Main.cc:6:14: error: 'i' was not declared in this scope
  for(int 1=0;i<3;i++)
              ^
Main.cc:6:17: error: expected ')' before ';' token
  for(int 1=0;i<3;i++)
                 ^
Main.cc:6:18: error: 'i' was not declared in this scope
  for(int 1=0;i<3;i++)
                  ^
Main.cc:7:15: error: 'j' was not declared in this scope
   for(int j=1;j<4;j++){
               ^