QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#515886 | #6396. Puzzle: Kusabi | ZhaoZiLong | Compile Error | / | / | C++20 | 2.1kb | 2024-08-12 10:46:07 | 2024-08-12 10:46:08 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:6:1: error: ‘vector’ does not name a type 6 | vector<int>g[maxn]; | ^~~~~~ answer.code:15:1: error: ‘multiset’ does not name a type 15 | multiset<Node>f[maxn][3]; | ^~~~~~~~ answer.code:16:1: error: ‘multiset’ does not name a type 16 | multiset<Node>::iterator it,it1,it2; | ^~~~~~~~ answer.code: In function ‘void invalid()’: answer.code:18:9: error: ‘printf’ was not declared in this scope 18 | printf("NO"); | ^~~~~~ answer.code:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? +++ |+#include <cstdio> 1 | using namespace std; answer.code:19:9: error: ‘exit’ was not declared in this scope 19 | exit(0); | ^~~~ answer.code:1:1: note: ‘exit’ is defined in header ‘<cstdlib>’; did you forget to ‘#include <cstdlib>’? +++ |+#include <cstdlib> 1 | using namespace std; answer.code: At global scope: answer.code:24:1: error: ‘vector’ does not name a type 24 | vector<Ans>ans; | ^~~~~~ answer.code: In function ‘void dfs(int, int)’: answer.code:28:23: error: ‘g’ was not declared in this scope 28 | for(int i=0;i<g[x].size();i++){ | ^ answer.code:34:28: error: ‘f’ was not declared in this scope 34 | if(f[v][j].size()>sz[j]) | ^ answer.code:40:31: error: ‘g’ was not declared in this scope 40 | for(int j=0;j<g[x].size();j++){ | ^ answer.code:44:28: error: ‘f’ was not declared in this scope 44 | if(f[v][i].size()==sz[i]){ | ^ answer.code:45:33: error: ‘swap’ was not declared in this scope 45 | swap(f[v][i],f[x][i]); | ^~~~ answer.code:54:31: error: ‘g’ was not declared in this scope 54 | for(int j=0;j<g[x].size();j++){ | ^ answer.code:58:25: error: ‘it’ was not declared in this scope; did you mean ‘i’? 58 | it=f[v][i].begin(); | ^~ | i answer.code:58:28: error: ‘f’ was not declared in this scope 58 | it=f[v][i].begin(); | ^ answer.code:65:9: error: ‘it’ was not declared in this scope; did you mean ‘int’? 65 | it=f[x][0].begin(); | ^~ | int answer.code:65:12: error: ‘f’ was not declared in this scope 65 | it=f[x][0].begin(); | ^ answer.code:67:17: error: ‘it1’ was not declared in this scope 67 | it1=it; | ^~~ answer.code:74:25: error: ‘it2’ was not declared in this scope 74 | it2=it1; | ^~~ answer.code:76:25: error: ‘ans’ was not declared in this scope; did you mean ‘Ans’? 76 | ans.push_back((Ans){it->x,it1->x}); | ^~~ | Ans answer.code:84:17: error: ‘it1’ was not declared in this scope 84 | it1=f[x][2].upper_bound((Node){0,it->dep}); | ^~~ answer.code:88:25: error: ‘ans’ was not declared in this scope; did you mean ‘Ans’? 88 | ans.push_back((Ans){it->x,it1->x}); | ^~~ | Ans answer.code:89:25: error: ‘it2’ was not declared in this scope 89 | it2=it; | ^~~ answer.code: In function ‘int main()’: answer.code:102:9: error: ‘scanf’ was not declared in this scope 102 | scanf("%d",&n); | ^~~~~ answer.code:107:17: error: ‘g’ was not declared in this scope 107 | g[x].push_back(y); | ^ answer.code:119:9: error: ‘printf’ was not declared in this scope 119 | printf("YES\n"); | ^~~~~~ answer.code:119:9: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? answer.code:120:23: error: ‘ans’ was not declared in this scope; did you mean ‘Ans’? 120 | for(int i=0;i<ans.size();i++) | ^~~ | Ans