QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#358639#6298. Coloringucup-team1965Compile Error//C++177.3kb2024-03-19 21:43:322024-03-19 21:43:33

详细

answer.code:19:34: error: stray ‘#’ in program
   19 |         V.resize(U.size(), -inf);#include <bits/stdc++.h>
      |                                  ^
answer.code: In function ‘std::vector<long long int> dfs(int, int)’:
answer.code:19:35: error: ‘include’ was not declared in this scope
   19 |         V.resize(U.size(), -inf);#include <bits/stdc++.h>
      |                                   ^~~~~~~
answer.code:19:44: error: ‘bits’ was not declared in this scope
   19 |         V.resize(U.size(), -inf);#include <bits/stdc++.h>
      |                                            ^~~~
answer.code:19:49: error: ‘stdc’ was not declared in this scope; did you mean ‘std’?
   19 |         V.resize(U.size(), -inf);#include <bits/stdc++.h>
      |                                                 ^~~~
      |                                                 std
answer.code:21:1: error: expected primary-expression before ‘using’
   21 | using namespace std;
      | ^~~~~
answer.code:31:30: error: a function-definition is not allowed here before ‘{’ token
   31 | vector<ll> dfs(int u, int p) {
      |                              ^
answer.code:51:8: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   51 | ll yeah() {
      |        ^~
answer.code:51:8: note: remove parentheses to default-initialize a variable
   51 | ll yeah() {
      |        ^~
      |        --
answer.code:51:8: note: or replace parentheses with braces to value-initialize a variable
answer.code:51:11: error: a function-definition is not allowed here before ‘{’ token
   51 | ll yeah() {
      |           ^
answer.code:122:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
  122 | ll yeah2() {
      |         ^~
answer.code:122:9: note: remove parentheses to default-initialize a variable
  122 | ll yeah2() {
      |         ^~
      |         --
answer.code:122:9: note: or replace parentheses with braces to value-initialize a variable
answer.code:122:12: error: a function-definition is not allowed here before ‘{’ token
  122 | ll yeah2() {
      |            ^
answer.code:149:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
  149 | int main() {
      |         ^~
answer.code:149:9: note: remove parentheses to default-initialize a variable
  149 | int main() {
      |         ^~
      |         --
answer.code:149:9: note: or replace parentheses with braces to value-initialize a variable
answer.code:149:12: error: a function-definition is not allowed here before ‘{’ token
  149 | int main() {
      |            ^