QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#326458 | #4829. Mark on a Graph | ucup-team1626 | Compile Error | / | / | C++14 | 1.9kb | 2024-02-13 04:26:08 | 2024-02-13 04:26:09 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code:5:1: error: ‘vector’ does not name a type 5 | vector <int> v [1000]; | ^~~~~~ answer.code: In function ‘int main()’: answer.code:19:9: error: ‘v’ was not declared in this scope 19 | v[a].push_back(b); | ^ answer.code:23:5: error: ‘vector’ was not declared in this scope 23 | vector <int> bestNods; | ^~~~~~ 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:23:13: error: expected primary-expression before ‘int’ 23 | vector <int> bestNods; | ^~~ answer.code:26:30: error: ‘v’ was not declared in this scope 26 | for(int a1 = 0; a1 < v[i].size(); a1++){ | ^ answer.code:30:33: error: expected primary-expression before ‘int’ 30 | vector <int> nods = {i, v[i][a1], v[i][a2], v[i][a3], v[i][a4]}; | ^~~ answer.code:34:42: error: ‘nodes’ was not declared in this scope 34 | if(graph[nodes[j]][nodes[k]]){ | ^~~~~ answer.code:41:29: error: ‘bestNods’ was not declared in this scope 41 | bestNods = nods; | ^~~~~~~~ answer.code:41:40: error: ‘nods’ was not declared in this scope 41 | bestNods = nods; | ^~~~ answer.code:53:29: error: expected primary-expression before ‘>’ token 53 | vector <pair<int,int>> mark; | ^~ answer.code:53:32: error: ‘mark’ was not declared in this scope 53 | vector <pair<int,int>> mark; | ^~~~ answer.code:56:27: error: ‘bestNods’ was not declared in this scope 56 | if(!graph[bestNods[j]][bestNods[k]]){ | ^~~~~~~~