QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#473661 | #5090. 妙妙题 | A6n6d6y6 | Compile Error | / | / | C++20 | 527b | 2024-07-12 12:03:23 | 2024-07-12 12:03:24 |
Judging History
This is the latest submission verdict.
- [2024-07-12 12:03:24]
- Judged
- Verdict: Compile Error
- Time: 0ms
- Memory: 0kb
- [2024-07-12 12:03:23]
- Submitted
answer
#include<bits/stdc++.h>
#include "tmp.h"
#define int long long
#define double long double
using namespace std;
const int maxn=2e5+10;
const double pi=acosl(-1),eps=1e-10l;
double sn[maxn],cs[maxn];
int n;
void init(int m,bool _,int p){
n=m;
for(int i=1;i<n;i++)
sn[i]=sinl(2*pi*i/n),cs[i]=cosl(2*pi*i/n);
}
bool guess(unsigned long long a,int _){
double x=0,y=0;int s=0;
for(int i=1;i<n;i++)
if((a>>(i-1))&1)
x+=cs[i],y+=sn[i],s++;
if(fabsl(y)<=eps)return (fabsl(x)>eps);
return (s&1)^(y>0);
}
Details
implementer.cpp: In function ‘int _JFIBEIIYTAFEUXOULOWO_::main()’: implementer.cpp:18:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 18 | scanf("%d%d%d%d",&N,&Type,&p,&T); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ implementer.cpp:23:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 23 | scanf("%llu",&x); | ~~~~~^~~~~~~~~~~ /usr/bin/ld: /tmp/ccjHnvTU.o: in function `_JFIBEIIYTAFEUXOULOWO_::main()': implementer.cpp:(.text.startup+0x65): undefined reference to `init(int, bool, int)' /usr/bin/ld: implementer.cpp:(.text.startup+0x578): undefined reference to `guess(unsigned long long, int)' collect2: error: ld returned 1 exit status