QOJ.ac
QOJ
The 2nd Universal Cup Finals is coming! Check out our event page, schedule, and competition rules!
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#663192 | #9483. Maximize Array | mouhua# | Compile Error | / | / | C++23 | 3.4kb | 2024-10-21 14:03:31 | 2024-10-21 14:03:31 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:45:2: error: stray ‘#’ in program 45 | }#include<bits/extc++.h> | ^ answer.code:45:11: error: ‘bits’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:16: error: ‘extc’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:11: error: ‘bits’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:16: error: ‘extc’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:11: error: ‘bits’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:16: error: ‘extc’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:11: error: ‘bits’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:16: error: ‘extc’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:11: error: ‘bits’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:16: error: ‘extc’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:11: error: ‘bits’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:16: error: ‘extc’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:11: error: ‘bits’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:16: error: ‘extc’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:11: error: ‘bits’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:16: error: ‘extc’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:11: error: ‘bits’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:16: error: ‘extc’ was not declared in this scope 45 | }#include<bits/extc++.h> | ^~~~ answer.code:45:3: error: ‘include’ does not name a type 45 | }#include<bits/extc++.h> | ^~~~~~~ answer.code:51:6: error: redefinition of ‘void debug(const char*)’ 51 | void debug(const char* names) {cerr << endl;} template<typename T, typename... Args>void debug(const char* names, T value, Args... args) {const char* comma = strchr(names, ','); if (comma) {cerr.write(names, comma - names) << "=" << value << ", "; debug(comma + 1, args...);} else {cerr << names << " = " << value << endl; }} | ^~~~~ answer.code:7:6: note: ‘void debug(const char*)’ previously defined here 7 | void debug(const char* names) {cerr << endl;} template<typename T, typename... Args>void debug(const char* names, T value, Args... args) {const char* comma = strchr(names, ','); if (comma) {cerr.write(names, comma - names) << "=" << value << ", "; debug(comma + 1, args...);} else {cerr << names << " = " << value << endl; }} | ^~~~~ answer.code:51:90: error: redefinition of ‘template<class T, class ... Args> void debug(const char*, T, Args ...)’ 51 | void debug(const char* names) {cerr << endl;} template<typename T, typename... Args>void debug(const char* names, T value, Args... args) {const char* comma = strchr(names, ','); if (comma) {cerr.write(names, comma - names) << "=" << value << ", "; debug(comma + 1, args...);} else {cerr << names << " = " << value << endl; }} | ^~~~~ answer.code:7:90: note: ‘template<class T, class ... Args> void debug(const char*, T, Args ...)’ previously declared here 7 | void debug(const char* names) {cerr << endl;} template<typename T, typename... Args>void debug(const char* names, T value, Args... args) {const char* comma = strchr(names, ','); if (comma) {cerr.write(names, comma - names) << "=" << value << ", "; debug(comma + 1, args...);} else {cerr << names << " = " << value << endl; }} | ^~~~~ answer.code:53:35: error: redefinition of ‘template<class T, class ... U> void chmax(T&, const U& ...)’ 53 | template<class T, class... U>void chmax(T &a, const U &... b) {for (const auto& val : {b...})if (a < val) {a = val;}} | ^~~~~ answer.code:9:35: note: ‘template<class T, class ... U> void chmax(T&, const U& ...)’ previously declared here 9 | template<class T, class... U>void chmax(T &a, const U &... b) {for (const auto& val : {b...})if (a < val) {a = val;}} | ^~~~~ answer.code:54:35: error: redefinition of ‘template<class T, class ... U> void...