QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#470453 | #4783. 神秘货币 | oolimry | Compile Error | / | / | C++14 | 807b | 2024-07-10 13:54:12 | 2024-07-10 13:54:12 |
Judging History
answer
#include "currency.h"
#include "grader.cpp"
#include <bits/stdc++.h>
using namespace std;
#define sz(x) (int) (x).size()
#define all(x) (x).begin(), (x).end()
#define show(x) cerr << #x << " is " << x << endl;
#define show2(x,y) cerr << #x << " is " << x << " " << #y << " is " << y << endl;
#define show3(x,y,z) cerr << #x << " is " << x << " " << #y << " is " << y << " " << #z << " is " << z << endl;
#define showlist(x) cerr << #x << " is "; for(auto p : x) cerr << p << " "; cerr << endl;
typedef long long lint;
typedef pair<int,int> ii;
void solve(int type){
if(type == 4){
vector<int> v;
for(int i = 1;i <= 1000;i++){
if(query(i)) v.push_back(i);
}
int n = v.size();
int ans[n] = {};
for(int i = 0;i < n;i++) ans[i] = v[i];
answer(n, ans);
}
}
Details
implementer.cpp: In function ‘bool query(long long int)’: implementer.cpp:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d", &ret); | ~~~~~^~~~~~~~~~~~ implementer.cpp: In function ‘int main(int, char**)’: implementer.cpp:24:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 24 | scanf("%d", &type); | ~~~~~^~~~~~~~~~~~~ answer.code:2:10: fatal error: grader.cpp: No such file or directory 2 | #include "grader.cpp" | ^~~~~~~~~~~~ compilation terminated.