QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#798488#9800. Crisis Event: MeteoriteNailongGroupCompile Error//C++205.7kb2024-12-04 14:08:112024-12-04 14:08:20

Details

answer.code: In function ‘int work(int, std::vector<node>&, vi&, vi&)’:
answer.code:159:14: error: a function-definition is not allowed here before ‘{’ token
  159 | void solve() {
      |              ^
answer.code:195:12: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
  195 | signed main() {
      |            ^~
answer.code:195:12: note: remove parentheses to default-initialize a variable
  195 | signed main() {
      |            ^~
      |            --
answer.code:195:12: note: or replace parentheses with braces to value-initialize a variable
answer.code:195:15: error: a function-definition is not allowed here before ‘{’ token
  195 | signed main() {
      |               ^
answer.code:201:2: error: expected ‘}’ at end of input
  201 | }
      |  ^
answer.code:131:48: note: to match this ‘{’
  131 | int work(int n, vector<node> &A, vi &p, vi &a) {
      |                                                ^
answer.code:201:2: warning: control reaches end of non-void function [-Wreturn-type]
  201 | }
      |  ^