Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
80580 张之隽 18高于平均分的学生数量 C++ Compile Error 0 MS 0 KB 222 2024-07-11 15:20:13

Tests(0/0):


Code:

#include <iostream> using namespace std; int main(){ int a[10]={1,2,3,4,5,6,7,8,9}; int b=5; for(int i=7;i>=4;i--){ a[i+1]=a[i]; } a[4]b; for(int i=0;i<=8;i++){ cout<<a[i]<<' '; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:6: error: expected ';' before 'b'
  a[4]b;
      ^
Main.cc:9:5: warning: statement has no effect [-Wunused-value]
  a[4]b;
     ^
Main.cc:5:6: warning: unused variable 'b' [-Wunused-variable]
  int b=5;
      ^