QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#507108 | #8635. 圆 | LGMaster | Compile Error | / | / | C++14 | 530b | 2024-08-06 11:00:56 | 2024-08-06 11:00:57 |
Judging History
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