QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#100434 | #5828. 游戏 | alch07 | Compile Error | / | / | C++14 | 4.8kb | 2023-04-26 07:41:18 | 2023-04-26 07:41:20 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:17:1: error: ‘vector’ does not name a type 17 | vector <int> edgs [maxn]; | ^~~~~~ answer.code: In function ‘void dfs(int, int)’: answer.code:24:24: error: ‘edgs’ was not declared in this scope 24 | for(int i = 0; i < edgs[x].size(); i++){ | ^~~~ answer.code:29:24: error: ‘edgs’ was not declared in this scope 29 | for(int i = 0; i < edgs[x].size(); i++){ | ^~~~ answer.code: In function ‘void dfs2(int, int)’: answer.code:44:24: error: ‘edgs’ was not declared in this scope 44 | for(int i = 0; i < edgs[x].size(); i++){ | ^~~~ answer.code:57:5: error: ‘assert’ was not declared in this scope 57 | assert(mxv == dpath[x][0]); | ^~~~~~ answer.code:2:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’? 1 | #include <iostream> +++ |+#include <cassert> 2 | answer.code:58:5: error: ‘secDeep’ was not declared in this scope; did you mean ‘sdeep’? 58 | secDeep = smv; | ^~~~~~~ | sdeep answer.code:59:24: error: ‘edgs’ was not declared in this scope 59 | for(int i = 0; i < edgs[x].size(); i++){ | ^~~~ answer.code:76:24: error: ‘edgs’ was not declared in this scope 76 | for(int i = 0; i < edgs[x].size(); i++){ | ^~~~ answer.code: In function ‘void getTop3()’: answer.code:86:9: error: ‘vector’ was not declared in this scope 86 | vector <pair<int,int>> v; | ^~~~~~ answer.code:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’? 1 | #include <iostream> +++ |+#include <vector> 2 | answer.code:86:29: error: expected primary-expression before ‘>’ token 86 | vector <pair<int,int>> v; | ^~ answer.code:86:32: error: ‘v’ was not declared in this scope 86 | vector <pair<int,int>> v; | ^ answer.code:90:28: error: ‘edgs’ was not declared in this scope 90 | for(int j = 0; j < edgs[i].size(); j++){ | ^~~~ answer.code:97:9: error: ‘sort’ was not declared in this scope; did you mean ‘short’? 97 | sort(v.begin(), v.end(), greater<pair<int,int>>()); | ^~~~ | short answer.code: In function ‘int getNodeAway(int, int, int)’: answer.code:109:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 109 | if(ch == par[nod]){ | ~~~^~~~~~~~~~~ answer.code: In function ‘void solveQuery(int)’: answer.code:161:5: error: ‘vector’ was not declared in this scope 161 | vector <pair<int,int>> ee = {{(a+b-c)/2, 0}, {(a+c-b)/2, 1}, {(c+b-a)/2, 2}}; | ^~~~~~ answer.code:161:5: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’? answer.code:161:25: error: expected primary-expression before ‘>’ token 161 | vector <pair<int,int>> ee = {{(a+b-c)/2, 0}, {(a+c-b)/2, 1}, {(c+b-a)/2, 2}}; | ^~ answer.code:161:28: error: ‘ee’ was not declared in this scope 161 | vector <pair<int,int>> ee = {{(a+b-c)/2, 0}, {(a+c-b)/2, 1}, {(c+b-a)/2, 2}}; | ^~ answer.code:162:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’? 162 | sort(ee.begin(), ee.end(), greater<pair<int,int>>()); | ^~~~ | short answer.code: At global scope: answer.code:193:6: error: expected unqualified-id before numeric constant 193 | void 3DPartialOrder(vector <pair<pair<int,int>, pair<int,int>>> v){//-nodid = a node, id = a query. | ^~~~~~~~~~~~~~ answer.code: In function ‘int getNodeAway(int, int, int)’: answer.code:148:1: warning: control reaches end of non-void function [-Wreturn-type] 148 | } | ^