QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#544542 | #67. Two Transportations | 5un_xiaomivita_mbox | Compile Error | / | / | C++23 | 2.6kb | 2024-09-02 18:44:59 | 2024-09-02 18:44:59 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Azer.code: In function ‘void InitA(int, int, std::vector<int>, std::vector<int>, std::vector<int>)’: Azer.code:17:43: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ 17 | for(int i=0;i<m;i++) e[U[i]+1].push_back({V[i]+1,C[i]}); | ^ Azer.code:17:56: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ 17 | for(int i=0;i<m;i++) e[U[i]+1].push_back({V[i]+1,C[i]}); | ^ Azer.code:18:43: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ 18 | for(int i=0;i<m;i++) e[V[i]+1].push_back({U[i]+1,C[i]}); | ^ Azer.code:18:56: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ 18 | for(int i=0;i<m;i++) e[V[i]+1].push_back({U[i]+1,C[i]}); | ^ Azer.code: In function ‘void slv(int)’: Azer.code:37:11: error: ‘i’ does not name a type 37 | for(auto i:e[x]) if(dis[i.fi]>dis[x]+i.se) dis[i.fi]=dis[x]+i.se; | ^ Azer.code:37:67: error: expected ‘;’ before ‘cnt’ 37 | for(auto i:e[x]) if(dis[i.fi]>dis[x]+i.se) dis[i.fi]=dis[x]+i.se; | ^ | ; 38 | cnt++; | ~~~ Azer.code:39:10: error: expected ‘)’ before ‘;’ token 39 | vis[x]=1; | ^ | ) Azer.code:37:5: note: to match this ‘(’ 37 | for(auto i:e[x]) if(dis[i.fi]>dis[x]+i.se) dis[i.fi]=dis[x]+i.se; | ^ In file included from grader_Azer.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_Azer.cpp: In function ‘int main(int, char**)’: grader_Azer.cpp:37:13: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] 37 | char *t = "/dev/null"; | ^~~~~~~~~~~