QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#144139 | #4184. Amusement Arcade | MaMengQi | Compile Error | / | / | C++98 | 623b | 2023-08-21 15:41:53 | 2023-08-21 15:41:55 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘int main()’: answer.code:16:17: warning: extended initializer lists only available with ‘-std=c++11’ or ‘-std=gnu++11’ 16 | vector<ll> x{1, 3}; | ^ answer.code:16:16: error: in C++98 ‘x’ must be initialized by constructor, not by ‘{...}’ 16 | vector<ll> x{1, 3}; | ^ answer.code:21:15: error: ‘v’ does not name a type 21 | for (auto v : x) | ^ answer.code:28:6: error: expected ‘;’ before ‘cout’ 28 | } | ^ | ; 29 | cout << "impossible" << endl; | ~~~~ answer.code:30:5: error: expected primary-expression before ‘return’ 30 | return 0; | ^~~~~~ answer.code:29:34: error: expected ‘)’ before ‘return’ 29 | cout << "impossible" << endl; | ^ | ) 30 | return 0; | ~~~~~~ answer.code:21:9: note: to match this ‘(’ 21 | for (auto v : x) | ^