Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
120092 | 丁海扬 | 22第n项的数 | C++ | Compile Error | 0 MS | 0 KB | 286 | 2025-05-24 10:16:37 |
#include<bits/stdc++.h> using namespace std; int main() { int a[4],c1,c2,n; cin>>n; for(int i=0;i<=n;i++) { cin>>a[i]; c1=a[1]-a[0]; c2=a[3]-a[2]; b1=a[1]/a[0]; if(ci==c2) cout<<a[0]+c1*(n-1); else cout<<pow(b,(n-1)) } cout<<maxn-minn; return 0; }
Main.cc: In function 'int main()': Main.cc:12:2: error: 'b1' was not declared in this scope b1=a[1]/a[0]; ^ Main.cc:13:5: error: 'ci' was not declared in this scope if(ci==c2) ^ Main.cc:16:13: error: 'b' was not declared in this scope cout<