QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#566474#111. Amusement Park3un_larryfuncCompile Error//C++234.1kb2024-09-16 00:13:382024-09-16 00:13:42

详细

Joi.code: In function ‘void Joi(int, int, int*, int*, long long int, int)’:
Joi.code:9:22: error: ‘>>’ should be ‘> >’ within a nested template argument list
    9 |     vector<vector<int>> adj(N),edge(N);
      |                      ^~
      |                      > >
Joi.code:15:5: error: ‘function’ was not declared in this scope
   15 |     function<void(int)> dfs = [&](int u){
      |     ^~~~~~~~
Joi.code:15:5: note: ‘std::function’ is only available from C++11 onwards
Joi.code:15:14: error: expected primary-expression before ‘void’
   15 |     function<void(int)> dfs = [&](int u){
      |              ^~~~
Joi.code:28:5: error: ‘dfs’ was not declared in this scope; did you mean ‘ffs’?
   28 |     dfs(0);
      |     ^~~
      |     ffs
Joi.code:29:26: error: expression list treated as compound expression in functional cast [-fpermissive]
   29 |     function<void(int,int)> dfs2 = [&](int u,int p){
      |                          ^
Joi.code:29:14: error: expected primary-expression before ‘void’
   29 |     function<void(int,int)> dfs2 = [&](int u,int p){
      |              ^~~~
Joi.code:57:5: error: ‘dfs2’ was not declared in this scope
   57 |     dfs2(0,0);
      |     ^~~~
In file included from grader_Joi.cpp:2:
testlib.h: In member function ‘std::vector<T> 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_Joi.cpp: In function ‘int {anonymous}::Move(int)’:
grader_Joi.cpp:30:19: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
   30 |  if (!edges.count({ pos, dest })) {
      |                   ^
grader_Joi.cpp:30:32: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
   30 |  if (!edges.count({ pos, dest })) {
      |                                ^
grader_Joi.cpp: In function ‘int main(int, char**)’:
grader_Joi.cpp:57:12: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
   57 |  char *t = "/dev/null";
      |            ^~~~~~~~~~~
grader_Joi.cpp:71:16: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
   71 |   edges.insert({ A[i], B[i] });
      |                ^
grader_Joi.cpp:71:30: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
   71 |   edges.insert({ A[i], B[i] });
      |                              ^
grader_Joi.cpp:72:16: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
   72 |   edges.insert({ B[i], A[i] });
      |                ^
grader_Joi.cpp:72:30: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’
   72 |   edges.insert({ B[i], A[i] });
      |                              ^