QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#402866#8320. 种树jxy2012Compile Error//C++232.0kb2024-05-01 16:58:592024-05-01 16:59:01

Details

answer.code: In function ‘void init(int)’:
answer.code:11:27: error: ‘min’ is not a member of ‘std’
   11 |         for (int i = std::min(s, n); i >= 0 && i >= s - i; i--) {
      |                           ^~~
answer.code: At global scope:
answer.code:23:6: error: ‘vector’ in namespace ‘std’ does not name a template type
   23 | std::vector<int> G[75];
      |      ^~~~~~
answer.code:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
  +++ |+#include <vector>
    1 | // #include <iostream>
answer.code: In function ‘void dfs(int, int)’:
answer.code:26:19: error: ‘G’ was not declared in this scope
   26 |     for (auto v : G[u]) {
      |                   ^
answer.code: In function ‘__int128 unsigned encode(int, const int*)’:
answer.code:41:9: error: ‘G’ was not declared in this scope
   41 |         G[i].clear();
      |         ^
answer.code:44:9: error: ‘G’ was not declared in this scope
   44 |         G[p[i]].push_back(i);
      |         ^
grader_encoder.cpp: In function ‘__int128 unsigned {anonymous}::read()’:
grader_encoder.cpp:7:45: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 | #define gc() ((buff == buf + 100000 ? (fread(buf,1,100000,stdin),buff = buf) : 0),*(buff++))
      |                                        ~~~~~^~~~~~~~~~~~~~~~~~~~
grader_encoder.cpp:12:17: note: in expansion of macro ‘gc’
   12 |         int c = gc();
      |                 ^~
grader_encoder.cpp:7:45: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 | #define gc() ((buff == buf + 100000 ? (fread(buf,1,100000,stdin),buff = buf) : 0),*(buff++))
      |                                        ~~~~~^~~~~~~~~~~~~~~~~~~~
grader_encoder.cpp:13:39: note: in expansion of macro ‘gc’
   13 |         while(c < '0' || c > '9') c = gc();
      |                                       ^~
grader_encoder.cpp:7:45: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 | #define gc() ((buff == buf + 100000 ? (fread(buf,1,100000,stdin),buff = buf) : 0),*(buff++))
      |                                        ~~~~~^~~~~~~~~~~~~~~~~~~~
grader_encoder.cpp:14:62: note: in expansion of macro ‘gc’
   14 |         while(c >= '0' && c <= '9') x = x * 10 + c - '0',c = gc();
      |                                                              ^~