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_30033516_12559.cpp:5:13: error: 'll' was not declared in this scope
 #define int ll
             ^
0_0_30033516_12559.cpp:11:14: note: in expansion of macro 'int'
 typedef pair<int,int> pii;
              ^
0_0_30033516_12559.cpp:5:13: error: 'll' was not declared in this scope
 #define int ll
             ^
0_0_30033516_12559.cpp:11:18: note: in expansion of macro 'int'
 typedef pair<int,int> pii;
                  ^
0_0_30033516_12559.cpp:11:21: error: template argument 1 is invalid
 typedef pair<int,int> pii;
                     ^
0_0_30033516_12559.cpp:11:21: error: template argument 2 is invalid
0_0_30033516_12559.cpp:11:26: error: invalid type in declaration before ';' token
 typedef pair<int,int> pii;
                          ^
0_0_30033516_12559.cpp:5:13: error: 'll' was not declared in this scope
 #define int ll
             ^
0_0_30033516_12559.cpp:12:16: note: in expansion of macro 'int'
 typedef vector<int> vi;
                ^
0_0_30033516_12559.cpp:12:19: error: template argument 1 is invalid
 typedef vector<int> vi;
                   ^
0_0_30033516_12559.cpp:12:19: error: template argument 2 is invalid
0_0_30033516_12559.cpp:12:23: error: invalid type in declaration before ';' token
 typedef vector<int> vi;
                       ^
0_0_30033516_12559.cpp: In function 'void dfs(ll, ll, ll)':
0_0_30033516_12559.cpp:64:16: error: 'begin' was not declared in this scope
  for(auto v:E[u])
                ^
0_0_30033516_12559.cpp:64:16: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
                 from 0_0_30033516_12559.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1206:5: note:   'std::begin'
     begin(const valarray<_Tp>& __va)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1206:5: note:   'std::begin'
0_0_30033516_12559.cpp:64:16: error: 'end' was not declared in this scope
  for(auto v:E[u])
                ^
0_0_30033516_12559.cpp:64:16: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
                 from 0_0_30033516_12559.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1226:5: note:   'std::end'
     end(const valarray<_Tp>& __va)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1226:5: note:   'std::end'
0_0_30033516_12559.cpp:8:12: error: request for member 'push_back' in 'e[id[u]]', which is of non-class type 'vi {aka int}'
 #define pb push_back
            ^
0_0_30033516_12559.cpp:67:13: note: in expansion of macro 'pb'
    e[id[u]].pb(id[v]);
             ^
0_0_30033516_12559.cpp: In function 'void init()':
0_0_30033516_12559.cpp:83:8: error: request for member 'clear' in 'e[i]', which is of non-class type 'vi {aka int}'
   e[i].clear(),E[i].clear(),s[i].clear();
        ^
0_0_30033516_12559.cpp:83:21: error: request for member 'clear' in 'E[i]', which is of non-class type 'vi {aka int}'
   e[i].clear(),E[i].clear(),s[i].clear();
                     ^
0_0_30033516_12559.cpp:85:29: error: no matching function for call to 'max(int, const long long int&)'
  B=max(2,min(n,(int)sqrt(n)));
                             ^
0_0_30033516_12559.cpp:85:29: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_30033516_12559.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:217:5: note: template<class _Tp> const _Tp& std::max(const _Tp&, const _Tp&)
     max(const _Tp& __a, const _Tp& __b)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:217:5: note:   template argument deduction/substitution failed:
0_0_30033516_12559.cpp:85:29: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
  B=max(2,min(n,(int)sqrt(n)));
                             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_30033516_12559.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note: template<class _Tp, class _Compare> const _Tp& std::max(const _Tp&, const _Tp&, _Compare)
     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:261:5: note:   template argument deduction/substitution failed:
0_0_30033516_12559.cpp:85:29: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
  B=max(2,min(n,(int)sqrt(n)));
                             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_30033516_12559.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3449:5: note: template<class _Tp> _Tp std::max(std::initializer_list<_Tp>)
     max(initializer_list<_Tp> __l)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3449:5: note:   template argument deduction/substitution failed:
0_0_30033516_12559.cpp:85:29: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
  B=max(2,min(n,(int)sqrt(n)));
                             ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_30033516_12559.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note: template<class _Tp, class _Compare> _Tp std::max(std::initializer_list<_Tp>, _Compare)
     max(initializer_list<_Tp> __l, _Compare __comp)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note:   template argument deduction/substitution failed:
0_0_30033516_12559.cpp:85:29: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
  B=max(2,min(n,(int)sqrt(n)));
                             ^
0_0_30033516_12559.cpp:8:12: error: request for member 'push_back' in 'E[a]', which is of non-class type 'vi {aka int}'
 #define pb push_back
            ^
0_0_30033516_12559.cpp:88:8: note: in expansion of macro 'pb'
   E[a].pb(b),E[b].pb(a);
        ^
0_0_30033516_12559.cpp:8:12: error: request for member 'push_back' in 'E[b]', which is of non-class type 'vi {aka int}'
 #define pb push_back
            ^
0_0_30033516_12559.cpp:88:19: note: in expansion of macro 'pb'
   E[a].pb(b),E[b].pb(a);
                   ^
0_0_30033516_12559.cpp: In function 'void build()':
0_0_30033516_12559.cpp:138:17: error: 'begin' was not declared in this scope
   for(auto v:e[u])
                 ^
0_0_30033516_12559.cpp:138:17: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
                 from 0_0_30033516_12559.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1206:5: note:   'std::begin'
     begin(const valarray<_Tp>& __va)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1206:5: note:   'std::begin'
0_0_30033516_12559.cpp:138:17: error: 'end' was not declared in this scope
   for(auto v:e[u])
                 ^
0_0_30033516_12559.cpp:138:17: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
                 from 0_0_30033516_12559.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1226:5: note:   'std::end'
     end(const valarray<_Tp>& __va)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1226:5: note:   'std::end'
0_0_30033516_12559.cpp:160:17: error: 'begin' was not declared in this scope
   for(auto v:e[u])
                 ^
0_0_30033516_12559.cpp:160:17: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:94:0,
                 from 0_0_30033516_12559.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:1206:5: note:   'std::begin'
     begin(const valarray<_Tp>& __va)
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/valarray:120


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-11-26 07:30:30, Gzip enabled