Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78962 刘宇轩 22第n项的数 C++ Compile Error 0 MS 0 KB 195 2024-06-29 15:44:34

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int v,a,b,c,d; cin>>v>>a>>b>>c>>d; if(d-c==b-a){ cout<<a+(n-1)*(b-a); } else{ cout<<a*pow(d/c,n-1); } return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:8:12: error: 'n' was not declared in this scope
   cout<