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_21595777_29712.cpp:55:22: error: stray '#' in program
         if(str1[0]=='-'){
                      ^
0_0_21595777_29712.cpp:55:28: error: stray '#' in program
         if(str1[0]=='-'){
                            ^
0_0_21595777_29712.cpp:57:70: error: stray '#' in program
             for(int i=0;i<len1;i++) str1[i]=str1[i+1]; str1[--len1]='\0';
                                                                      ^
0_0_21595777_29712.cpp:57:13: error: stray '\' in program
             for(int i=0;i<len1;i++) str1[i]=str1[i+1]; str1[--len1]='\0';
             ^
0_0_21595777_29712.cpp:57:77: error: stray '#' in program
             for(int i=0;i<len1;i++) str1[i]=str1[i+1]; str1[--len1]='\0';
                                                                             ^
0_0_21595777_29712.cpp:59:22: error: stray '#' in program
         if(str2[0]=='-'){
                      ^
0_0_21595777_29712.cpp:59:28: error: stray '#' in program
         if(str2[0]=='-'){
                            ^
0_0_21595777_29712.cpp:61:70: error: stray '#' in program
             for(int i=0;i<len2;i++) str2[i]=str2[i+1]; str2[--len2]='\0';
                                                                      ^
0_0_21595777_29712.cpp:61:13: error: stray '\' in program
             for(int i=0;i<len2;i++) str2[i]=str2[i+1]; str2[--len2]='\0';
             ^
0_0_21595777_29712.cpp:61:77: error: stray '#' in program
             for(int i=0;i<len2;i++) str2[i]=str2[i+1]; str2[--len2]='\0';
                                                                             ^
0_0_21595777_29712.cpp:66:39: error: stray '#' in program
             x1[i]=cpx(str1[len1-1-i]-'0',0);
                                       ^
0_0_21595777_29712.cpp:66:45: error: stray '#' in program
             x1[i]=cpx(str1[len1-1-i]-'0',0);
                                             ^
0_0_21595777_29712.cpp:70:39: error: stray '#' in program
             x2[i]=cpx(str2[len2-1-i]-'0',0);
                                       ^
0_0_21595777_29712.cpp:70:45: error: stray '#' in program
             x2[i]=cpx(str2[len2-1-i]-'0',0);
                                             ^
0_0_21595777_29712.cpp:85:53: error: stray '#' in program
         for(int i=len;i>=0;i--) printf("%c",sum[i]+'0');  printf("\n");
                                                     ^
0_0_21595777_29712.cpp:85:59: error: stray '#' in program
         for(int i=len;i>=0;i--) printf("%c",sum[i]+'0');  printf("\n");
                                                           ^
0_0_21595777_29712.cpp: In function 'int main()':
0_0_21595777_29712.cpp:55:23: error: lvalue required as unary '&' operand
         if(str1[0]=='-'){
                       ^
0_0_21595777_29712.cpp:55:25: error: expected ')' before ';' token
         if(str1[0]=='-'){
                         ^
0_0_21595777_29712.cpp:55:29: error: lvalue required as unary '&' operand
         if(str1[0]=='-'){
                             ^
0_0_21595777_29712.cpp:55:32: error: expected primary-expression before ')' token
         if(str1[0]=='-'){
                                ^
0_0_21595777_29712.cpp:59:23: error: lvalue required as unary '&' operand
         if(str2[0]=='-'){
                       ^
0_0_21595777_29712.cpp:59:25: error: expected ')' before ';' token
         if(str2[0]=='-'){
                         ^
0_0_21595777_29712.cpp:59:29: error: lvalue required as unary '&' operand
         if(str2[0]=='-'){
                             ^
0_0_21595777_29712.cpp:59:32: error: expected primary-expression before ')' token
         if(str2[0]=='-'){
                                ^
0_0_21595777_29712.cpp:66:40: error: lvalue required as unary '&' operand
             x1[i]=cpx(str1[len1-1-i]-'0',0);
                                        ^
0_0_21595777_29712.cpp:66:49: error: expected primary-expression before ',' token
             x1[i]=cpx(str1[len1-1-i]-'0',0);
                                                 ^
0_0_21595777_29712.cpp:70:40: error: lvalue required as unary '&' operand
             x2[i]=cpx(str2[len2-1-i]-'0',0);
                                        ^
0_0_21595777_29712.cpp:70:49: error: expected primary-expression before ',' token
             x2[i]=cpx(str2[len2-1-i]-'0',0);
                                                 ^
0_0_21595777_29712.cpp:85:54: error: lvalue required as unary '&' operand
         for(int i=len;i>=0;i--) printf("%c",sum[i]+'0');  printf("\n");
                                                      ^
0_0_21595777_29712.cpp:85:63: error: expected primary-expression before ')' token
         for(int i=len;i>=0;i--) printf("%c",sum[i]+'0');  printf("\n");
                                                               ^


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-03 12:22:43, Gzip enabled