Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
89287 | 王煜鑫 | 05等差数列 | C++ | Compile Error | 0 MS | 0 KB | 117 | 2024-08-23 14:34:04 |
#include<iostream> using namespace std; int main(){; int a1,a2,n cin>>a1>>a2>>n; cout<<(a2-a1)*n; }
Main.cc: In function 'int main()': Main.cc:5:5: error: expected initializer before 'cin' cin>>a1>>a2>>n; ^ Main.cc:6:19: error: 'n' was not declared in this scope cout<<(a2-a1)*n; ^