QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#515571 | #6798. String Theory | ucup-team1005 | Compile Error | / | / | C++14 | 3.0kb | 2024-08-11 18:49:12 | 2024-08-11 18:49:12 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:22:2: error: call to non-‘constexpr’ function ‘<lambda()>’ 18 | static constexpr UIT inv = []() { | ~~~~~~ 19 | UIT ret = mod; | ~~~~~~~~~~~~~~ 20 | for(int i = 0; i < 6; i++) ret *= 2 - ret * mod; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 21 | return ret; | ~~~~~~~~~~~ 22 | }(); | ~^~ answer.code:18:28: note: ‘<lambda()>’ is not usable as a ‘constexpr’ function because: 18 | static constexpr UIT inv = []() { | ^ answer.code:18:28: note: lambdas are implicitly ‘constexpr’ only in C++17 and later answer.code: In function ‘int main()’: answer.code:107:26: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions] 107 | for(auto [l, r, p] : run){ | ^