Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
128403 唐安轩 青蛙跳台阶 C++ Compile Error 0 MS 0 KB 202 2025-08-16 11:43:17

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:2: error: 'a' was not declared in this scope
  a[1]=1;
  ^
Main.cc:13:10: error: 'i' was not declared in this scope
  cout<