Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
7607 | 邓小龙 | 12序列找规律 | C++ | Compile Error | 0 MS | 0 KB | 457 | 2025-05-07 18:22:08 |
#include<iostream> // cin\cout\endl #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(){ #include <stdio.h> int main() { int N; cin>>N,a; if (N%2==1) { a=10000-(N-1)/2; } else { a=10000-(N-2); } return 0; }
Main.cc: In function 'int main()': Main.cc:10:12: error: a function-definition is not allowed here before '{' token int main() { ^ Main.cc:25:1: error: expected '}' at end of input } ^