Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
148507 张晓冉 18高度为k的树 C++ Compile Error 0 MS 0 KB 239 2026-02-23 14:46:12

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:9:11: error: 'a' was not declared in this scope
      cin>>a[i];
           ^