F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_32015510_3168.cpp:1:2: error: stray '#' in program
 ​#include<bits/stdc++.h>
  ^
0_0_32015510_3168.cpp:1:8: error: stray '#' in program
 ​#include<bits/stdc++.h>
        ^
0_0_32015510_3168.cpp:108:2: error: stray '#' in program
 ​
  ^
0_0_32015510_3168.cpp:1:3: error: expected unqualified-id before numeric constant
 ​#include<bits/stdc++.h>
   ^
0_0_32015510_3168.cpp:1:3: error: expected constructor, destructor, or type conversion before numeric constant
0_0_32015510_3168.cpp:1:9: error: 'include' does not name a type
 ​#include<bits/stdc++.h>
         ^
0_0_32015510_3168.cpp:8:1: error: 'vector' does not name a type
 vector < pair < int, int > > e[N];
 ^
0_0_32015510_3168.cpp:10:1: error: 'vector' does not name a type
 vector < int > Q;
 ^
0_0_32015510_3168.cpp: In function 'void check(int)':
0_0_32015510_3168.cpp:20:25: error: 'e' was not declared in this scope
  for (RG int i = 0; i < e[u].size(); i++) {
                         ^
0_0_32015510_3168.cpp: In function 'void dfs(int, int)':
0_0_32015510_3168.cpp:29:25: error: 'e' was not declared in this scope
  for (RG int i = 0; i < e[u].size(); i++) {
                         ^
0_0_32015510_3168.cpp:30:3: error: 'pair' was not declared in this scope
   pair < int, int > v = e[u][i];
   ^
0_0_32015510_3168.cpp:30:10: error: expected primary-expression before 'int'
   pair < int, int > v = e[u][i];
          ^
0_0_32015510_3168.cpp:31:11: error: 'v' was not declared in this scope
   if (vis[v.first] == false) {
           ^
0_0_32015510_3168.cpp: At global scope:
0_0_32015510_3168.cpp:42:18: error: 'pair' has not been declared
 void calc(int u, pair < int, int > pre) {  //求出以其他点为根的dp值
                  ^
0_0_32015510_3168.cpp:42:23: error: expected ',' or '...' before '<' token
 void calc(int u, pair < int, int > pre) {  //求出以其他点为根的dp值
                       ^
0_0_32015510_3168.cpp: In function 'void calc(int, int)':
0_0_32015510_3168.cpp:43:2: error: 'Q' was not declared in this scope
  Q.push_back(dp[u]);
  ^
0_0_32015510_3168.cpp:44:25: error: 'e' was not declared in this scope
  for (RG int i = 0; i < e[u].size(); i++) {
                         ^
0_0_32015510_3168.cpp:45:3: error: 'pair' was not declared in this scope
   pair < int, int > v = e[u][i];
   ^
0_0_32015510_3168.cpp:45:10: error: expected primary-expression before 'int'
   pair < int, int > v = e[u][i];
          ^
0_0_32015510_3168.cpp:46:7: error: 'v' was not declared in this scope
   if (v == pre) continue;
       ^
0_0_32015510_3168.cpp:46:12: error: 'pre' was not declared in this scope
   if (v == pre) continue;
            ^
0_0_32015510_3168.cpp:47:7: error: 'v' was not declared in this scope
   if (v.second == dir || v.second == (dir ^ 1)) continue;
       ^
0_0_32015510_3168.cpp:48:6: error: 'v' was not declared in this scope
   dp[v.first] = dp[u] + ((v.second % 2 == 0) ? -1 : 1);
      ^
0_0_32015510_3168.cpp: In function 'int main()':
0_0_32015510_3168.cpp:54:26: error: 'stdin' was not declared in this scope
  freopen("back.in", "r", stdin);
                          ^
0_0_32015510_3168.cpp:54:31: error: 'freopen' was not declared in this scope
  freopen("back.in", "r", stdin);
                               ^
0_0_32015510_3168.cpp:55:27: error: 'stdout' was not declared in this scope
  freopen("back.out", "w", stdout);
                           ^
0_0_32015510_3168.cpp:56:16: error: 'scanf' was not declared in this scope
  scanf("%d", &T);
                ^
0_0_32015510_3168.cpp:59:39: error: 'e' was not declared in this scope
   for (RG int i = 1; i <= n * 2; i++) e[i].clear();
                                       ^
0_0_32015510_3168.cpp:63:4: error: 'e' was not declared in this scope
    e[y].push_back(make_pair(x, 2 * i - 1));
    ^
0_0_32015510_3168.cpp:63:41: error: 'make_pair' was not declared in this scope
    e[y].push_back(make_pair(x, 2 * i - 1));
                                         ^
0_0_32015510_3168.cpp:66:33: error: 'memset' was not declared in this scope
   memset(vis, false, sizeof(vis));
                                 ^
0_0_32015510_3168.cpp:77:28: error: 'puts' was not declared in this scope
   if (fl == 0) puts("-1 -1");
                            ^
0_0_32015510_3168.cpp:86:5: error: 'Q' was not declared in this scope
     Q.clear();
     ^
0_0_32015510_3168.cpp:87:19: error: cannot convert '<brace-enclosed initializer list>' to 'int' for argument '2' to 'void calc(int, int)'
     calc(i, {0, 0});
                   ^
0_0_32015510_3168.cpp:90:29: error: 'sort' was not declared in this scope
      sort(Q.begin(), Q.end());
                             ^
0_0_32015510_3168.cpp:98:50: error: 'min' was not declared in this scope
      ans += min(dp[st] + dir, dp[nxt] + (dir ^ 1));
                                                  ^
0_0_32015510_3168.cpp:102:30: error: 'printf' was not declared in this scope
    printf("%d %d\n", ans, tot);
                              ^
0_0_32015510_3168.cpp: At global scope:
0_0_32015510_3168.cpp:108:3: error: expected unqualified-id before numeric constant
 ​
   ^
0_0_32015510_3168.cpp:108:3: error: expected constructor, destructor, or type conversion before numeric constant


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-03 15:45:33, Gzip enabled