QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#507121#8635. 圆LGMasterCompile Error//C++14602b2024-08-06 11:13:352024-08-06 11:13:37

Judging History

你现在查看的是最新测评结果

  • [2024-08-06 11:13:37]
  • 评测
  • [2024-08-06 11:13:35]
  • 提交

answer

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<climits>
//#define int long long
using namespace std;
const int N=5005,mod=998244353;
int n,ans;
inline int read(){
    int s=0,f=1;
    char ch=getchar();
    while(!isdigit(ch)){
        if(ch=='-') f=-1;
        ch=getchar();
    }
    while(isdigit(ch)){
        s=(s<<3)+(s<<1)+(ch&15);
        ch=getchar();
    }
    return s*f;
}
int main(){
    n=read();
    if(n<=3) puts("1"),exit(0);
    else if(n==4) puts("2"),exit(0);
    else puts("114514”);
	return 0;
}

Details

answer.code:28:15: warning: missing terminating " character
   28 |     else puts("114514”);
      |               ^
answer.code:28:15: error: missing terminating " character
   28 |     else puts("114514”);
      |               ^~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:29:9: error: expected primary-expression before ‘return’
   29 |         return 0;
      |         ^~~~~~