QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#65301 | #4585. Greedy Knapsack | HuangHanSheng | Compile Error | / | / | C++ | 3.3kb | 2022-11-29 14:17:41 | 2022-11-29 14:17:44 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:1:5: error: stray ‘#’ in program 1 | 2 #include <cstdio> | ^ answer.code:2:5: error: stray ‘#’ in program 2 | 3 #include <cstring> | ^ answer.code:3:5: error: stray ‘#’ in program 3 | 4 #include <iostream> | ^ answer.code:4:5: error: stray ‘#’ in program 4 | 5 #include <algorithm> | ^ answer.code:5:5: error: stray ‘#’ in program 5 | 6 #include <queue> | ^ answer.code:6:5: error: stray ‘#’ in program 6 | 7 #include <stack> | ^ answer.code:1:3: error: expected unqualified-id before numeric constant 1 | 2 #include <cstdio> | ^ answer.code:9:2: error: expected unqualified-id before numeric constant 9 | 10 | ^~ answer.code:11:2: error: expected unqualified-id before numeric constant 11 | 12 const int M = 2500100; | ^~ answer.code:12:2: error: expected unqualified-id before numeric constant 12 | 13 const int INF = 0x3f3f3f3f; | ^~ answer.code:13:2: error: expected unqualified-id before numeric constant 13 | 14 | ^~ answer.code:15:2: error: expected unqualified-id before numeric constant 15 | 16 struct Edge{ | ^~ answer.code:17:6: error: ‘edge’ does not name a type 17 | 18 }edge[M]; | ^~~~ answer.code:18:2: error: expected unqualified-id before numeric constant 18 | 19 | ^~ answer.code:23:2: error: expected unqualified-id before numeric constant 23 | 24 | ^~ answer.code:30:2: error: expected unqualified-id before numeric constant 30 | 31 | ^~ answer.code:32:2: error: expected unqualified-id before numeric constant 32 | 33 bool vis[N]; | ^~ answer.code:33:2: error: expected unqualified-id before numeric constant 33 | 34 int dis[N], cnt[N]; | ^~ answer.code:34:2: error: expected unqualified-id before numeric constant 34 | 35 | ^~ answer.code:75:2: error: expected unqualified-id before numeric constant 75 | 76 | ^~ answer.code:81:6: error: ‘house’ does not name a type 81 | 82 }house[N]; | ^~~~~ answer.code:82:2: error: expected unqualified-id before numeric constant 82 | 83 | ^~