| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 114869 | 王奕杰 | 12序列找规律 | C++ | Compile Error | 0 MS | 0 KB | 330 | 2025-03-24 18:39:16 |
#include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int i,n,s=10000; cin>>n; for(i=3;i>=n;i=-1){ s=s+(i-2); } cout<<s; return 0; }
Main.cc: In function 'int main()':
Main.cc:8:5: error: 'cin' was not declared in this scope
cin>>n;
^
Main.cc:12:5: error: 'cout' was not declared in this scope
cout<