Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
80475 石晋骁 18成绩修改 C++ Compile Error 0 MS 0 KB 260 2024-07-11 14:45:48

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int a[101]; int main(){ int n,x,f; cin >> n; for(int i = 1;i <= n;i++){ cin >> a[i]; } cin >> x; cin >> f;a a[x] = f; for(int j = 1;j <= n;j++){ cout << a[j] << " "; } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:12:2: error: expected ';' before 'a'
  a[x] = f;
  ^
Main.cc:12:10: warning: statement has no effect [-Wunused-value]
  a[x] = f;
          ^