| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 76311 | 祝家懿 | 直线分割圆 | C++ | Compile Error | 0 MS | 0 KB | 163 | 2024-06-02 11:16:46 |
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; long along s=1; for(int i=1;i<a+1;i++){ s=s+i; } cout<<s; return 0; }
Main.cc: In function 'int main()':
Main.cc:6:13: error: expected initializer before 's'
long along s=1;
^
Main.cc:8:3: error: 's' was not declared in this scope
s=s+i;
^
Main.cc:10:8: error: 's' was not declared in this scope
cout<