QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#535291 | #4927. Bounded Spanning Tree | egypt_ioi2024_03 | Compile Error | / | / | C++20 | 2.8kb | 2024-08-27 22:52:18 | 2024-08-27 22:52:18 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘char Input::next_char()’: answer.code:12:50: error: ‘stdin’ was not declared in this scope 12 | len = (int)fread(buf, 1, BUF_SZ, stdin); | ^~~~~ answer.code:1:1: note: ‘stdin’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? +++ |+#include <cstdio> 1 | answer.code:12:28: error: ‘fread’ was not declared in this scope; did you mean ‘friend’? 12 | len = (int)fread(buf, 1, BUF_SZ, stdin); | ^~~~~ | friend answer.code:13:36: error: ‘EOF’ was not declared in this scope 13 | if (!len) { return EOF; } | ^~~ answer.code:13:36: note: ‘EOF’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? answer.code: In function ‘int Input::read_int()’: answer.code:22:17: error: ‘isdigit’ was not declared in this scope 22 | while (!isdigit(ch = next_char())) { | ^~~~~~~ answer.code:26:16: error: ‘isdigit’ was not declared in this scope 26 | while (isdigit(ch = next_char())) { x = x * 10 + (ch - '0'); } | ^~~~~~~ answer.code: At global scope: answer.code:31:8: error: ‘pair’ was not declared in this scope 31 | vector<pair<int,int>>adj[N],events[N]; | ^~~~ answer.code:1:1: note: ‘std::pair’ is defined in header ‘<utility>’; did you forget to ‘#include <utility>’? +++ |+#include <utility> 1 | answer.code:31:8: error: ‘pair’ was not declared in this scope 31 | vector<pair<int,int>>adj[N],events[N]; | ^~~~ answer.code:31:8: note: ‘std::pair’ is defined in header ‘<utility>’; did you forget to ‘#include <utility>’? answer.code:31:8: error: ‘pair’ was not declared in this scope answer.code:31:8: note: ‘std::pair’ is defined in header ‘<utility>’; did you forget to ‘#include <utility>’? answer.code:31:8: error: ‘pair’ was not declared in this scope answer.code:31:8: note: ‘std::pair’ is defined in header ‘<utility>’; did you forget to ‘#include <utility>’? answer.code:31:8: error: ‘pair’ was not declared in this scope answer.code:31:8: note: ‘std::pair’ is defined in header ‘<utility>’; did you forget to ‘#include <utility>’? answer.code:31:8: error: ‘pair’ was not declared in this scope answer.code:31:8: note: ‘std::pair’ is defined in header ‘<utility>’; did you forget to ‘#include <utility>’? answer.code:31:8: error: ‘pair’ was not declared in this scope answer.code:31:8: note: ‘std::pair’ is defined in header ‘<utility>’; did you forget to ‘#include <utility>’? answer.code:31:8: error: ‘pair’ was not declared in this scope answer.code:31:8: note: ‘std::pair’ is defined in header ‘<utility>’; did you forget to ‘#include <utility>’? answer.code:31:8: error: ‘pair’ was not declared in this scope answer.code:31:8: note: ‘std::pair’ is defined in header ‘<utility>’; did you forget to ‘#include <utility>’? answer.code:31:1: error: ‘vector’ does not name a type 31 | vector<pair<int,int>>adj[N],events[N]; | ^~~~~~ answer.code: In function ‘void dfs(int, int)’: answer.code:36:65: error: ‘max’ was not declared in this scope; did you mean ‘mx’? 36 | for(int i=1;i<19;i++)p[u][i]=p[p[u][i-1]][i-1],mx[u][i]=max(mx[u][i-1],mx[p[u][i-1]][i-1]); | ^~~ | mx answer.code:37:23: error: ‘adj’ was not declared in this scope 37 | for(auto[v,e]:adj[u]){ | ^~~ answer.code: In function ‘void update(int, int, int)’: answer.code:44:26: error: ‘swap’ was not declared in this scope 44 | if(dep[v]<dep[u])swap(u,v); | ^~~~ answer.code:45:19: error: ‘__lg’ was not declared in this scope 45 | for(int i=__lg(dep[v]);i>=0;i--){ | ^~~~ answer.code:47:30: error: ‘max’ was not declared in this scope; did you mean ‘mx’? 47 | l[e]=max(l[e],mx[v][i]); | ^~~ | mx answer.code:48:34: error: ‘min’ was not declared in this scope; did you mean ‘mn’? 48 | mn[v][i]=min(mn[v][i],r[e]); | ^~~ | mn answer.code:53:19: error: ‘__lg’ was not declared in this scope 53 | for(int i=__lg(dep[v]);i>=0;i--){ | ^~~~ answer.code:55:39: error: ‘max’ was not declared in this scope; did you mean ‘mx’? 55 | l[e]=max(l[e],max(mx[v][i],mx[u][i])); | ^~~ | mx answer.code:55:30: error: ‘max’ was not declared in this scope; did you mean ‘mx’? 55 | l[e]=max(l[e],max(mx[v][i],...