QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#507108#8635. 圆LGMasterCompile Error//C++14530b2024-08-06 11:00:562024-08-06 11:00:57

Judging History

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

  • [2024-08-06 11:00:57]
  • 评测
  • [2024-08-06 11:00:56]
  • 提交

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 
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);
	return 0;
}

Details

answer.code:10:1: error: two or more data types in declaration of ‘read’
   10 | int
      | ^~~
answer.code: In function ‘int main()’:
answer.code:25:5: error: ‘n’ was not declared in this scope
   25 |     n=read();
      |     ^
answer.code:25:7: error: ‘read’ was not declared in this scope; did you mean ‘fread’?
   25 |     n=read();
      |       ^~~~
      |       fread