Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
161173 格林老师 折线分割圆 C++ Compile Error 0 MS 0 KB 239 2026-10-01 18:27:05

Tests(0/0):


Code:

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


Run Info:

Main.cc: In function 'int main()':
Main.cc:13:1: error: expected primary-expression before ']' token
 ]
 ^
Main.cc:13:1: error: expected '}' at end of input