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_24106855_6569.cpp: In function 'void build(int, int, int)':
0_0_24106855_6569.cpp:4:23: error: expected ')' before ';' token
 #define lson l,m,rt<<1;
                       ^
0_0_24106855_6569.cpp:15:8: note: in expansion of macro 'lson'
  build(lson);
        ^
0_0_24106855_6569.cpp:15:12: error: expected primary-expression before ')' token
  build(lson);
            ^
0_0_24106855_6569.cpp:5:27: error: expected ')' before ';' token
 #define rson m+1,r,rt<<1|1;
                           ^
0_0_24106855_6569.cpp:16:8: note: in expansion of macro 'rson'
  build(rson);
        ^
0_0_24106855_6569.cpp:16:12: error: expected primary-expression before ')' token
  build(rson);
            ^
0_0_24106855_6569.cpp: In function 'void query(int, int, int, int, int)':
0_0_24106855_6569.cpp:22:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
   return sum[rt];
                ^
0_0_24106855_6569.cpp:4:23: error: expected ')' before ';' token
 #define lson l,m,rt<<1;
                       ^
0_0_24106855_6569.cpp:26:26: note: in expansion of macro 'lson'
  if(L<=m) ans+=query(L,R,lson);
                          ^
0_0_24106855_6569.cpp:26:30: error: expected primary-expression before ')' token
  if(L<=m) ans+=query(L,R,lson);
                              ^
0_0_24106855_6569.cpp:5:27: error: expected ')' before ';' token
 #define rson m+1,r,rt<<1|1;
                           ^
0_0_24106855_6569.cpp:27:25: note: in expansion of macro 'rson'
  if(R>m) ans+=query(L,R,rson);
                         ^
0_0_24106855_6569.cpp:27:29: error: expected primary-expression before ')' token
  if(R>m) ans+=query(L,R,rson);
                             ^
0_0_24106855_6569.cpp: In function 'void update(int, int, int, int, int)':
0_0_24106855_6569.cpp:4:23: error: expected ')' before ';' token
 #define lson l,m,rt<<1;
                       ^
0_0_24106855_6569.cpp:35:24: note: in expansion of macro 'lson'
  if(p<=m) update(p,add,lson);
                        ^
0_0_24106855_6569.cpp:35:28: error: expected primary-expression before ')' token
  if(p<=m) update(p,add,lson);
                            ^
0_0_24106855_6569.cpp:5:27: error: expected ')' before ';' token
 #define rson m+1,r,rt<<1|1;
                           ^
0_0_24106855_6569.cpp:36:23: note: in expansion of macro 'rson'
  if(p>m) update(p,add,rson);
                       ^
0_0_24106855_6569.cpp:36:27: error: expected primary-expression before ')' token
  if(p>m) update(p,add,rson);
                           ^
0_0_24106855_6569.cpp: In function 'int main()':
0_0_24106855_6569.cpp:61:9: error: no match for 'operator<<' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'void')
     cout<<query(a,b,1,n,1);
         ^
0_0_24106855_6569.cpp:61:9: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39:0,
                 from 0_0_24106855_6569.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:108:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(__ostream_type& (*__pf)(__ostream_type&))
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:108:7: note:   no known conversion for argument 1 from 'void' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&) {aka std::basic_ostream<char>& (*)(std::basic_ostream<char>&)}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:117:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]
       operator<<(__ios_type& (*__pf)(__ios_type&))
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:117:7: note:   no known conversion for argument 1 from 'void' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:127:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(ios_base& (*__pf) (ios_base&))
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:127:7: note:   no known conversion for argument 1 from 'void' to 'std::ios_base& (*)(std::ios_base&)'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:166:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(long __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:166:7: note:   no known conversion for argument 1 from 'void' to 'long int'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:170:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(unsigned long __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:170:7: note:   no known conversion for argument 1 from 'void' to 'long unsigned int'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:174:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(bool __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:174:7: note:   no known conversion for argument 1 from 'void' to 'bool'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:609:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_24106855_6569.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ostream.tcc:91:5: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]
     basic_ostream<_CharT, _Traits>::
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ostream.tcc:91:5: note:   no known conversion for argument 1 from 'void' to 'short int'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39:0,
                 from 0_0_24106855_6569.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:181:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(unsigned short __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:181:7: note:   no known conversion for argument 1 from 'void' to 'short unsigned int'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:609:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_24106855_6569.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ostream.tcc:105:5: note: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]
     basic_ostream<_CharT, _Traits>::
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ostream.tcc:105:5: note:   no known conversion for argument 1 from 'void' to 'int'
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39:0,
                 from 0_0_24106855_6569.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:192:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(unsigned int __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:192:7: note:   no known conversion for argument 1 from 'void' to 'unsigned int'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:201:7: note: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
       operator<<(long long __n)
       ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:201:7: note:   no known conversion for argument 1 from 'void' to 'long long int'
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostrea


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-16 22:46:02, Gzip enabled