Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155550 邓弘锐 19按规则查找数组中的数据 C++ Compile Error 0 MS 0 KB 231 2026-06-07 15:32:00

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:10:13: error: expected primary-expression before '<<' token
  cout<