| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 130819 | 李茗宇 | 12序列找规律 | C++ | Compile Error | 0 MS | 0 KB | 366 | 2025-09-17 20:03:31 |
#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 n,o=10000,j=10000; cin>>n; if(n%2==0){ cout<<10000-2*(n/2-1); } else{ cout<<10000-2/n; } return 0; }
Main.cc: In function 'int main()':
Main.cc:9:5: error: 'cin' was not declared in this scope
cin>>n;
^
Main.cc:11:6: error: 'cout' was not declared in this scope
cout<<10000-2*(n/2-1);
^
Main.cc:14:3: error: 'cout' was not declared in this scope
cout<<10000-2/n;
^
Main.cc:8:11: warning: unused variable 'o' [-Wunused-variable]
int n,o=10000,j=10000;
^
Main.cc:8:19: warning: unused variable 'j' [-Wunused-variable]
int n,o=10000,j=10000;
^