Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
123433 王梓轩 18高度为k的树 C++ Compile Error 0 MS 0 KB 112 2025-07-03 11:29:25

Tests(0/0):


Code:

include<iostream> using namespace std; int main() { int a[1000],n; cin>>n; cout<<a[n-1]; return 0; }


Run Info:

Main.cc:1:1: error: 'include' does not name a type
 include
 ^
Main.cc: In function 'int main()':
Main.cc:6:2: error: 'cin' was not declared in this scope
  cin>>n;
  ^
Main.cc:7:2: error: 'cout' was not declared in this scope
  cout<