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_33266952_5049.cpp:17: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_33266952_5049.cpp:17: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_33266952_5049.cpp:17: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_33266952_5049.cpp:23: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_33266952_5049.cpp:23: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_33266952_5049.cpp: In function 'void work()':
0_0_33266952_5049.cpp:35:16: error: 'struct MI' has no member named 'read'
 #define R (cin.read<int>())
                ^
0_0_33266952_5049.cpp:100:10: note: in expansion of macro 'R'
  int k = R;
          ^
0_0_33266952_5049.cpp:35:21: error: expected primary-expression before 'int'
 #define R (cin.read<int>())
                     ^
0_0_33266952_5049.cpp:100:10: note: in expansion of macro 'R'
  int k = R;
          ^
0_0_33266952_5049.cpp:35:21: error: expected ')' before 'int'
 #define R (cin.read<int>())
                     ^
0_0_33266952_5049.cpp:100:10: note: in expansion of macro 'R'
  int k = R;
          ^
0_0_33266952_5049.cpp:102:16: error: 'struct MI' has no member named 'read'
  cin.unget(cin.read<char>());
                ^
0_0_33266952_5049.cpp:102:21: error: expected primary-expression before 'char'
  cin.unget(cin.read<char>());
                     ^
0_0_33266952_5049.cpp: In function 'int main()':
0_0_33266952_5049.cpp:35:16: error: 'struct MI' has no member named 'read'
 #define R (cin.read<int>())
                ^
0_0_33266952_5049.cpp:108:10: note: in expansion of macro 'R'
  int T = R;
          ^
0_0_33266952_5049.cpp:35:21: error: expected primary-expression before 'int'
 #define R (cin.read<int>())
                     ^
0_0_33266952_5049.cpp:108:10: note: in expansion of macro 'R'
  int T = R;
          ^
0_0_33266952_5049.cpp:35:21: error: expected ')' before 'int'
 #define R (cin.read<int>())
                     ^
0_0_33266952_5049.cpp:108:10: note: in expansion of macro 'R'
  int T = R;
          ^


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-23 01:24:47, Gzip enabled