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_18146944_4131.cpp: In function 'void fft(ll*, int, int)':
0_0_18146944_4131.cpp:18:32: error: 'swap' was not declared in this scope
         if (i<j) swap(x[i],x[j]);  
                                ^
0_0_18146944_4131.cpp:18:32: note: suggested alternatives:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:65:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_18146944_4131.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_bvector.h:128:3: note:   'std::swap'
   swap(bool& __x, _Bit_reference __y) noexcept
   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/exception:162:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:39,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_18146944_4131.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/exception_ptr.h:160:5: note:   'std::__exception_ptr::swap'
     swap(exception_ptr& __lhs, exception_ptr& __rhs)
     ^
0_0_18146944_4131.cpp: In function 'll init()':
0_0_18146944_4131.cpp:60:26: error: expected primary-expression before ')' token
  for (int i = 1;i < N;i+=)
                          ^
0_0_18146944_4131.cpp:65:26: error: 'mm' was not declared in this scope
         nG[len]=mm(ng,now);  
                          ^
0_0_18146944_4131.cpp: In function 'int init()':
0_0_18146944_4131.cpp:72:10: error: ambiguating new declaration of 'int init()'
 int init(){ 
          ^
0_0_18146944_4131.cpp:54:4: note: old declaration 'll init()'
 ll init(){ 
    ^
0_0_18146944_4131.cpp:75:2: error: 'cin' was not declared in this scope
  cin >> T;
  ^
0_0_18146944_4131.cpp:75:2: note: suggested alternative:
In file included from 0_0_18146944_4131.cpp:2:0:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^
0_0_18146944_4131.cpp:81:17: error: 'sort' was not declared in this scope
   sort(a+1,a+n+1);
                 ^
0_0_18146944_4131.cpp:81:17: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_18146944_4131.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note:   'std::sort'
     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
     ^
0_0_18146944_4131.cpp:82:20: error: 'reverse' was not declared in this scope
   reverse(a+1,a+n+1);
                    ^
0_0_18146944_4131.cpp:82:20: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_18146944_4131.cpp:4:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:1177:5: note:   'std::reverse'
     reverse(_BidirectionalIterator __first, _BidirectionalIterator __last)
     ^


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-07-08 15:27:36, Gzip enabled