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_33266091_2082.cpp:51:9: error: "or" cannot be used as a macro name as it is an operator in C++
 #define or ||
         ^
0_0_33266091_2082.cpp:52:9: error: "and" cannot be used as a macro name as it is an operator in C++
 #define and &&
         ^
0_0_33266091_2082.cpp:18:10: error: explicit specialization in non-namespace scope 'struct MI'
 template<>struct MI::Q<char>{inline void operator()(MI&t,char&r){int c;for(;;){g I(c==-1,L void(r=-1))I(!isspace(c),L void(r=c))}}};inline int get(){if(o){o=0;L e;}
          ^
0_0_33266091_2082.cpp:18:18: error: extra qualification not allowed [-fpermissive]
 template<>struct MI::Q<char>{inline void operator()(MI&t,char&r){int c;for(;;){g I(c==-1,L void(r=-1))I(!isspace(c),L void(r=c))}}};inline int get(){if(o){o=0;L e;}
                  ^
0_0_33266091_2082.cpp:18:22: error: an anonymous struct cannot have function members
 template<>struct MI::Q<char>{inline void operator()(MI&t,char&r){int c;for(;;){g I(c==-1,L void(r=-1))I(!isspace(c),L void(r=c))}}};inline int get(){if(o){o=0;L e;}
                      ^
0_0_33266091_2082.cpp:24:65: error: too many template-parameter-lists
 }inline void unget(int c){o=1;e=c;}template<typename T>inline T read(){T r;Q<T>()(*this,r);L r;}template<typename T>inline MI&operator>(T&t){Q<T>()(*this,t);L*this;}};
                                                                 ^
0_0_33266091_2082.cpp:24:126: error: too many template-parameter-lists
 }inline void unget(int c){o=1;e=c;}template<typename T>inline T read(){T r;Q<T>()(*this,r);L r;}template<typename T>inline MI&operator>(T&t){Q<T>()(*this,t);L*this;}};
                                                                                                                              ^
0_0_33266091_2082.cpp: In function 'void work()':
0_0_33266091_2082.cpp:169:5: error: no match for 'operator>' (operand types are 'MI' and 'int')
  cin>n;
     ^
0_0_33266091_2082.cpp:173:6: error: no match for 'operator>' (operand types are 'MI' and 'char')
   cin>c>lef>bot>rig>top;
      ^
0_0_33266091_2082.cpp: In function 'int main()':
0_0_33266091_2082.cpp:36:16: error: 'struct MI' has no member named 'read'
 #define R (cin.read<int>())
                ^
0_0_33266091_2082.cpp:210:10: note: in expansion of macro 'R'
  int T = R, i;
          ^
0_0_33266091_2082.cpp:36:21: error: expected primary-expression before 'int'
 #define R (cin.read<int>())
                     ^
0_0_33266091_2082.cpp:210:10: note: in expansion of macro 'R'
  int T = R, i;
          ^
0_0_33266091_2082.cpp:36:21: error: expected ')' before 'int'
 #define R (cin.read<int>())
                     ^
0_0_33266091_2082.cpp:210:10: note: in expansion of macro 'R'
  int T = R, i;
          ^
0_0_33266091_2082.cpp:211:7: error: 'i' was not declared in this scope
  for (i=1;i<=T;i++) {
       ^


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 00:27:30, Gzip enabled