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_32784456_16274.cpp:13:1: error: 'set' does not name a type
 set<ll> faws[100005];
 ^
0_0_32784456_16274.cpp: In function 'int main()':
0_0_32784456_16274.cpp:25:4: error: 'faws' was not declared in this scope
    faws[i].clear();
    ^
0_0_32784456_16274.cpp:33:4: error: 'faws' was not declared in this scope
    faws[fa[i]].insert(weight[i]);
    ^
0_0_32784456_16274.cpp:36:3: error: 'set' was not declared in this scope
   set<ll>::iterator it;
   ^
0_0_32784456_16274.cpp:36:3: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/set:61:0,
                 from 0_0_32784456_16274.cpp:11:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_set.h:90:11: note:   'std::set'
     class set
           ^
0_0_32784456_16274.cpp:36:9: error: expected primary-expression before '>' token
   set<ll>::iterator it;
         ^
0_0_32784456_16274.cpp:36:10: error: '::iterator' has not been declared
   set<ll>::iterator it;
          ^
0_0_32784456_16274.cpp:36:10: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algobase.h:65:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/char_traits.h:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:40,
                 from 0_0_32784456_16274.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_types.h:118:12: note:   'std::iterator'
     struct iterator
            ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_iterator_base_types.h:118:12: note:   'std::iterator'
0_0_32784456_16274.cpp:41:7: error: 'faws' was not declared in this scope
    if(faws[i].size() >= 2){
       ^
0_0_32784456_16274.cpp:42:5: error: 'it' was not declared in this scope
     it = faws[i].end();
     ^
0_0_32784456_16274.cpp:49:25: error: 'max' was not declared in this scope
      max2 = max(max2,*it);
                         ^
0_0_32784456_16274.cpp:49:25: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_32784456_16274.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3454:5: note:   'std::max'
     max(initializer_list<_Tp> __l, _Compare __comp)
     ^
0_0_32784456_16274.cpp:57:25: error: 'min' was not declared in this scope
      min2 = min(min2,*it);
                         ^
0_0_32784456_16274.cpp:57:25: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_32784456_16274.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:3444:5: note:   'std::min'
     min(initializer_list<_Tp> __l, _Compare __comp)
     ^
0_0_32784456_16274.cpp:60:5: error: 'it' was not declared in this scope
     it = faws[i].begin();
     ^


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-30 05:18:17, Gzip enabled