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_26520879_1074.cpp:15:31: error: stray '#' in program
          using namespace std; #define loop(i,u,v) for(int i = u;i <= v;i++) #define rloop(i,u,v) for(int i = u;i >
                               ^
0_0_26520879_1074.cpp:15:77: error: stray '#' in program
          using namespace std; #define loop(i,u,v) for(int i = u;i <= v;i++) #define rloop(i,u,v) for(int i = u;i >
                                                                             ^
0_0_26520879_1074.cpp:16:18: error: stray '#' in program
         = v;i--) #define eps 0.00000001 void reverse(char *a) { char *first = &a[0]; char *last = &a[strlen(a)-1]; for(;first < last ; first++,last--) { char x = *first; *first = *last; *last = x; } } int main() { string a,b,c,d; int num[1100]; int n; cin >> n; loop(i,1,n) { memset(num,0,sizeof(num)); cin >> a >> b; c = a; d = b; reverse(&a[0]); reverse(&b[0]); int la = a.size(); int lb = b.size(); int lmin = min(la,lb); int lmax = max(la,lb); int x = 0; int last = lmin - 1; if(lb >
                  ^
0_0_26520879_1074.cpp:15:32: error: 'define' does not name a type
          using namespace std; #define loop(i,u,v) for(int i = u;i <= v;i++) #define rloop(i,u,v) for(int i = u;i >
                                ^
0_0_26520879_1074.cpp:15:65: error: 'i' does not name a type
          using namespace std; #define loop(i,u,v) for(int i = u;i <= v;i++) #define rloop(i,u,v) for(int i = u;i >
                                                                 ^
0_0_26520879_1074.cpp:15:72: error: 'i' does not name a type
          using namespace std; #define loop(i,u,v) for(int i = u;i <= v;i++) #define rloop(i,u,v) for(int i = u;i >
                                                                        ^
0_0_26520879_1074.cpp:15:112: error: 'i' does not name a type
          using namespace std; #define loop(i,u,v) for(int i = u;i <= v;i++) #define rloop(i,u,v) for(int i = u;i >
                                                                                                                ^
0_0_26520879_1074.cpp:16:13: error: 'i' does not name a type
         = v;i--) #define eps 0.00000001 void reverse(char *a) { char *first = &a[0]; char *last = &a[strlen(a)-1]; for(;first < last ; first++,last--) { char x = *first; *first = *last; *last = x; } } int main() { string a,b,c,d; int num[1100]; int n; cin >> n; loop(i,1,n) { memset(num,0,sizeof(num)); cin >> a >> b; c = a; d = b; reverse(&a[0]); reverse(&b[0]); int la = a.size(); int lb = b.size(); int lmin = min(la,lb); int lmax = max(la,lb); int x = 0; int last = lmin - 1; if(lb >
             ^
0_0_26520879_1074.cpp: In function 'int main()':
0_0_26520879_1074.cpp:16:268: error: 'i' was not declared in this scope
         = v;i--) #define eps 0.00000001 void reverse(char *a) { char *first = &a[0]; char *last = &a[strlen(a)-1]; for(;first < last ; first++,last--) { char x = *first; *first = *last; *last = x; } } int main() { string a,b,c,d; int num[1100]; int n; cin >> n; loop(i,1,n) { memset(num,0,sizeof(num)); cin >> a >> b; c = a; d = b; reverse(&a[0]); reverse(&b[0]); int la = a.size(); int lb = b.size(); int lmin = min(la,lb); int lmax = max(la,lb); int x = 0; int last = lmin - 1; if(lb >
                                                                                                                                                                                                                                                                            ^
0_0_26520879_1074.cpp:16:273: error: 'loop' was not declared in this scope
         = v;i--) #define eps 0.00000001 void reverse(char *a) { char *first = &a[0]; char *last = &a[strlen(a)-1]; for(;first < last ; first++,last--) { char x = *first; *first = *last; *last = x; } } int main() { string a,b,c,d; int num[1100]; int n; cin >> n; loop(i,1,n) { memset(num,0,sizeof(num)); cin >> a >> b; c = a; d = b; reverse(&a[0]); reverse(&b[0]); int la = a.size(); int lb = b.size(); int lmin = min(la,lb); int lmax = max(la,lb); int x = 0; int last = lmin - 1; if(lb >
                                                                                                                                                                                                                                                                                 ^


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-28 20:57:24, Gzip enabled