QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#78366 | #5090. 妙妙题 | Appleblue17 | Compile Error | / | / | C++17 | 558b | 2023-02-18 09:03:22 | 2023-02-18 09:03:23 |
Judging History
This is the latest submission verdict.
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2023-02-18 09:03:23]
- Judged
- Verdict: Compile Error
- Time: 0ms
- Memory: 0kb
- [2023-02-18 09:03:22]
- Submitted
answer
#include"tmp.h"
#include<bits/stdc++.h>
using namespace std;
namespace my{
const double PI=acos(-1),eps=1e-6;
double sn[66],cs[66];
int n;
}
void init (int N, bool Type, int p){
using namespace my;
n=N;
for(int i=1;i<n;i++) cs[i]=cos(2*PI*i/n),sn[i]=sin(2*PI*i/n);
}
inline bool guess (unsigned long long A, int x){
using namespace my;
double sx=0,sy=0;
bool tot=0;
for(int i=1;i<=n-1;i++){
if(A>>(i-1) & 1ull){
tot^=1;
sx+=cs[i],sy+=sn[i];
}
}
if(fabs(sy)<eps) return (fabs(sx)>=eps);
return tot^(sy>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/ccvnF4YO.o: in function `_JFIBEIIYTAFEUXOULOWO_::main()': implementer.cpp:(.text.startup+0x460): undefined reference to `guess(unsigned long long, int)' collect2: error: ld returned 1 exit status