Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
120818 张裕铭 18成绩修改 C++ Compile Error 0 MS 0 KB 209 2025-06-01 09:35:03

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:11:2: error: expected ';' before 'for'
  for(int i=1;i<=n;i++)
  ^
Main.cc:11:14: error: 'i' was not declared in this scope
  for(int i=1;i<=n;i++)
              ^