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_21572510_1904.cpp: In member function 'int tupl::tuple(double, double, double)':
0_0_21572510_1904.cpp:8:39: error: only constructors take member initializers
  tuple(double _x,double _y,double _z):x(_x),y(_y),z(_z){}
                                       ^
0_0_21572510_1904.cpp: In function 'tupl operator+(tupl, tupl)':
0_0_21572510_1904.cpp:11:37: error: no matching function for call to 'tupl::tupl(double, double, double)'
  return tupl(a.x+b.x,a.y+b.y,a.z+b.z);
                                     ^
0_0_21572510_1904.cpp:11:37: note: candidates are:
0_0_21572510_1904.cpp:7:2: note: tupl::tupl()
  tupl(){}
  ^
0_0_21572510_1904.cpp:7:2: note:   candidate expects 0 arguments, 3 provided
0_0_21572510_1904.cpp:5:8: note: constexpr tupl::tupl(const tupl&)
 struct tupl{
        ^
0_0_21572510_1904.cpp:5:8: note:   candidate expects 1 argument, 3 provided
0_0_21572510_1904.cpp:5:8: note: constexpr tupl::tupl(tupl&&)
0_0_21572510_1904.cpp:5:8: note:   candidate expects 1 argument, 3 provided
0_0_21572510_1904.cpp: In function 'tupl operator-(tupl, tupl)':
0_0_21572510_1904.cpp:14:37: error: no matching function for call to 'tupl::tupl(double, double, double)'
  return tupl(a.x-b.x,a.y-b.y,a.z-b.z);
                                     ^
0_0_21572510_1904.cpp:14:37: note: candidates are:
0_0_21572510_1904.cpp:7:2: note: tupl::tupl()
  tupl(){}
  ^
0_0_21572510_1904.cpp:7:2: note:   candidate expects 0 arguments, 3 provided
0_0_21572510_1904.cpp:5:8: note: constexpr tupl::tupl(const tupl&)
 struct tupl{
        ^
0_0_21572510_1904.cpp:5:8: note:   candidate expects 1 argument, 3 provided
0_0_21572510_1904.cpp:5:8: note: constexpr tupl::tupl(tupl&&)
0_0_21572510_1904.cpp:5:8: note:   candidate expects 1 argument, 3 provided
0_0_21572510_1904.cpp: In function 'tupl operator*(tupl, double)':
0_0_21572510_1904.cpp:17:31: error: no matching function for call to 'tupl::tupl(double, double, double)'
  return tupl(a.x*b,a.y*b,a.z*b);
                               ^
0_0_21572510_1904.cpp:17:31: note: candidates are:
0_0_21572510_1904.cpp:7:2: note: tupl::tupl()
  tupl(){}
  ^
0_0_21572510_1904.cpp:7:2: note:   candidate expects 0 arguments, 3 provided
0_0_21572510_1904.cpp:5:8: note: constexpr tupl::tupl(const tupl&)
 struct tupl{
        ^
0_0_21572510_1904.cpp:5:8: note:   candidate expects 1 argument, 3 provided
0_0_21572510_1904.cpp:5:8: note: constexpr tupl::tupl(tupl&&)
0_0_21572510_1904.cpp:5:8: note:   candidate expects 1 argument, 3 provided
0_0_21572510_1904.cpp: At global scope:
0_0_21572510_1904.cpp:26:1: error: 'vecor' does not name a type
 vecor<int>G[maxn];
 ^
0_0_21572510_1904.cpp: In function 'void dfs1(int)':
0_0_21572510_1904.cpp:30:16: error: no matching function for call to 'tupl::tupl(int, int, int)'
  tupl son(0,0,0);
                ^
0_0_21572510_1904.cpp:30:16: note: candidates are:
0_0_21572510_1904.cpp:7:2: note: tupl::tupl()
  tupl(){}
  ^
0_0_21572510_1904.cpp:7:2: note:   candidate expects 0 arguments, 3 provided
0_0_21572510_1904.cpp:5:8: note: constexpr tupl::tupl(const tupl&)
 struct tupl{
        ^
0_0_21572510_1904.cpp:5:8: note:   candidate expects 1 argument, 3 provided
0_0_21572510_1904.cpp:5:8: note: constexpr tupl::tupl(tupl&&)
0_0_21572510_1904.cpp:5:8: note:   candidate expects 1 argument, 3 provided
0_0_21572510_1904.cpp:31:13: error: 'G' was not declared in this scope
  for(auto v:G[u]){
             ^
0_0_21572510_1904.cpp:38:10: error: 'G' was not declared in this scope
  son=son/G[u].size();
          ^
0_0_21572510_1904.cpp: In function 'void dfs2(int)':
0_0_21572510_1904.cpp:50:13: error: 'G' was not declared in this scope
  for(auto v:G[u]){
             ^
0_0_21572510_1904.cpp: In function 'void solve()':
0_0_21572510_1904.cpp:63:3: error: 'G' was not declared in this scope
   G[i].clear();
   ^
0_0_21572510_1904.cpp:78:3: error: 'G' was not declared in this scope
   G[u].push_back(v);
   ^
0_0_21572510_1904.cpp:87:18: error: no matching function for call to 'tupl::tupl(int, int, int)'
  dp[n]=tupl(0,0,0);
                  ^
0_0_21572510_1904.cpp:87:18: note: candidates are:
0_0_21572510_1904.cpp:7:2: note: tupl::tupl()
  tupl(){}
  ^
0_0_21572510_1904.cpp:7:2: note:   candidate expects 0 arguments, 3 provided
0_0_21572510_1904.cpp:5:8: note: constexpr tupl::tupl(const tupl&)
 struct tupl{
        ^
0_0_21572510_1904.cpp:5:8: note:   candidate expects 1 argument, 3 provided
0_0_21572510_1904.cpp:5:8: note: constexpr tupl::tupl(tupl&&)
0_0_21572510_1904.cpp:5:8: note:   candidate expects 1 argument, 3 provided


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-10 18:00:42, Gzip enabled