QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#677195 | #114. Construction of Highway | yellowbird | Compile Error | / | / | C++14 | 449b | 2024-10-26 10:23:13 | 2024-10-26 10:23:19 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code:3:1: error: expected unqualified-id before ‘.’ token 3 | .push_back(w[i]); | ^ answer.code:4:13: error: expected constructor, destructor, or type conversion before ‘(’ token 4 | sort(vals.begin(),vals.end()),vals.erase(unique(vals.begin(),vals.end()),vals.end()); | ^ answer.code:5:9: error: expected unqualified-id before ‘for’ 5 | for(int i=1;i<=n;++i) w[i]=lower_bound(vals.begin(),vals .end(),w[i])-vals.begin()+1; | ^~~ answer.code:5:21: error: ‘i’ does not name a type 5 | for(int i=1;i<=n;++i) w[i]=lower_bound(vals.begin(),vals .end(),w[i])-vals.begin()+1; | ^ answer.code:5:26: error: expected unqualified-id before ‘++’ token 5 | for(int i=1;i<=n;++i) w[i]=lower_bound(vals.begin(),vals .end(),w[i])-vals.begin()+1; | ^~ answer.code:6:9: error: ‘LCT’ does not name a type 6 | LCT.col[1]=w[1],LCT.siz[1]=1; | ^~~ answer.code:7:9: error: expected unqualified-id before ‘for’ 7 | for(int i=1;i<n;++i) { | ^~~ answer.code:7:21: error: ‘i’ does not name a type 7 | for(int i=1;i<n;++i) { | ^ answer.code:7:25: error: expected unqualified-id before ‘++’ token 7 | for(int i=1;i<n;++i) { | ^~ answer.code:14:9: error: expected unqualified-id before ‘return’ 14 | return 0; | ^~~~~~ answer.code:15:1: error: expected declaration before ‘}’ token 15 | } | ^