QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#759958 | #3507. Broken Device 2 | Wansur# | Compile Error | / | / | C++23 | 537b | 2024-11-18 13:38:19 | 2024-11-18 13:38:20 |
Judging History
This is the latest submission verdict.
- [2024-11-18 13:38:20]
- Judged
- Verdict: Compile Error
- Time: 0ms
- Memory: 0kb
- [2024-11-18 13:38:19]
- Submitted
Anna
#include "Anna.h"
#include <bits/stdc++.h>
using namespace std;
namespace {
int variable_example = 0;
}
int Declare() {
return 2000;
}
pair<vector<int>, vector<int>> Anna(long long A) {
vector<int> a, b;
while(A--) {
a.push_back(1);
b.push_back(1);
}
return {a, b};
}
Bruno
#include "Bruno.h"
#include <bits/stdc++.h>
using namespace std;
namespace {
int variable_example = 0;
}
long long Bruno(std::vector<int> u) {
return (long long)u.size() / 2;
}
详细
Anna.code:16:29: error: ‘>>’ should be ‘> >’ within a nested template argument list 16 | pair<vector<int>, vector<int>> Anna(long long A) { | ^~ | > > Anna.code: In function ‘std::pair<std::vector<int>, std::vector<int> > Anna(long long int)’: Anna.code:22:12: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ 22 | return {a, b}; | ^ In file included from grader_Anna.cpp:3: testlib.h: In member function ‘std::vector<_Tp> random_t::distinct(int, T, T)’: testlib.h:997:9: error: ‘uint64_t’ was not declared in this scope; did you mean ‘u_int64_t’? 997 | uint64_t n = to - from + 1; | ^~~~~~~~ | u_int64_t testlib.h:998:30: error: ‘n’ was not declared in this scope 998 | if (uint64_t(size) > n) | ^ testlib.h:1007:32: error: ‘n’ was not declared in this scope 1007 | expected += double(n) / double(n - i + 1); | ^ testlib.h:1009:31: error: ‘n’ was not declared in this scope 1009 | if (expected < double(n)) { | ^ grader_Anna.cpp: In function ‘int main(int, char**)’: grader_Anna.cpp:53:13: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] 53 | argv[2] = "/dev/null"; | ^~~~~~~~~~~ grader_Anna.cpp:55:24: error: ‘std::chrono’ has not been declared 55 | unsigned seed = std::chrono::steady_clock::now().time_since_epoch().count(); | ^~~~~~ grader_Anna.cpp:80:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wformat=] 80 | printf("%d\n", u.size()); | ~^ ~~~~~~~~ | | | | int std::vector<int>::size_type {aka long unsigned int} | %ld grader_Anna.cpp:81:22: warning: range-based ‘for’ loops only available with ‘-std=c++11’ or ‘-std=gnu++11’ 81 | for (int x : u) | ^ grader_Anna.cpp:81:22: error: forming reference to reference type ‘std::vector<int>&’