QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#463444#6324. Expanded Hullucup-team2335#Compile Error//C++142.5kb2024-07-04 20:54:202024-07-04 20:54:22

Details

answer.code: In function ‘ll calc(std::vector<plane>, int)’:
answer.code:36:20: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   36 |         for(auto & [v, z] : p) {
      |                    ^
answer.code:44:34: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   44 |                         for(auto [v, z] : p) {
      |                                  ^
answer.code: In function ‘int main()’:
answer.code:72:20: warning: structured bindings only available with ‘-std=c++17’ or ‘-std=gnu++17’ [-Wc++17-extensions]
   72 |         for(auto & [x, y, z] : a) {
      |                    ^
answer.code:82:56: error: ‘gcd’ is not a member of ‘std’
   82 |                                         int gcd = std::gcd(std::gcd(z.x, z.y), z.z);
      |                                                        ^~~
answer.code:82:65: error: ‘gcd’ is not a member of ‘std’
   82 |                                         int gcd = std::gcd(std::gcd(z.x, z.y), z.z);
      |                                                                 ^~~