QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#171600 | #7184. Transport Pluses | ucup-team1588# | Compile Error | / | / | C++17 | 3.7kb | 2023-09-09 17:17:08 | 2023-09-09 17:17:09 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘void dij()’: answer.code:111:39: error: template argument 1 is invalid 111 | priority_queue <data, vector <data>, greater<data>> pq; | ^ answer.code:111:39: error: template argument 2 is invalid answer.code:111:50: error: template argument 1 is invalid 111 | priority_queue <data, vector <data>, greater<data>> pq; | ^~~~ answer.code:111:54: error: template argument 1 is invalid 111 | priority_queue <data, vector <data>, greater<data>> pq; | ^~ answer.code:111:54: error: template argument 2 is invalid answer.code:111:54: error: template argument 3 is invalid answer.code:112:8: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘int’ 112 | pq.push({0, h}); | ^~~~ answer.code:114:16: error: request for member ‘empty’ in ‘pq’, which is of non-class type ‘int’ 114 | while (!pq.empty()) | ^~~~~ answer.code:116:26: error: request for member ‘top’ in ‘pq’, which is of non-class type ‘int’ 116 | double dist = pq.top().first; | ^~~ answer.code:117:22: error: request for member ‘top’ in ‘pq’, which is of non-class type ‘int’ 117 | point p = pq.top().second; | ^~~ answer.code:118:12: error: request for member ‘pop’ in ‘pq’, which is of non-class type ‘int’ 118 | pq.pop(); | ^~~ answer.code:132:24: error: request for member ‘push’ in ‘pq’, which is of non-class type ‘int’ 132 | pq.push({d[x][y], {x, y}}); | ^~~~ answer.code: In function ‘int main()’: answer.code:154:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 154 | freopen("J.INP", "r", stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~