QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#96176 | #5090. 妙妙题 | c20230139 | Compile Error | / | / | C++14 | 492b | 2023-04-13 16:10:48 | 2023-04-13 16:10:51 |
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-04-13 16:10:51]
- Judged
- Verdict: Compile Error
- Time: 0ms
- Memory: 0kb
- [2023-04-13 16:10:48]
- Submitted
answer
#include<bits/stdc++.h>
#include "tmp.h"
const double pi=acos(-1),eps=1e-6;
double sin_[65],cos_[65];
int n;
using namespace std;
void init(int N,int opt,int p) {
n=N;
for(int i=1;i<n;i++) cos_[i]=cos(2*pi*i/n),sin_[i]=sin(2*pi*i/n);
}
int guess(unsigned long long a,int x) {
double s=0,c=0;
int tot=0;
for(int i=1;i<n;i++) {
if((a>>(i-1))&1ull) {
tot^=1;
s+=cos_[i];
c+=sin_[i];
}
}
if(fabs(c)<eps) return 0;
return tot^(c>0);
}
int main() {
}
详细
implementer.cpp: In function ‘int _JFIBEIIYTAFEUXOULOWO_::main()’: implementer.cpp:31:22: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 31 | auto [A,x,y,z]=V[i]; | ^ implementer.cpp:36:18: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 36 | for(auto [A,x,y]:U) | ^ implementer.cpp:39:22: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ 39 | auto [A,x,y,z]=V[i]; | ^ 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); | ~~~~~^~~~~~~~~~~ answer.code:11:5: error: ambiguating new declaration of ‘int guess(long long unsigned int, int)’ 11 | int guess(unsigned long long a,int x) { | ^~~~~ In file included from answer.code:2: tmp.h:3:6: note: old declaration ‘bool guess(long long unsigned int, int)’ 3 | bool guess (unsigned long long A, int x); | ^~~~~