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_39128616_6279.cpp:7:10: error: stray '\243' in program
    7 | int main(<a3><a9>
      |          ^~~~
0_0_39128616_6279.cpp:7:11: error: stray '\251' in program
    7 | int main(<a3><a9>
      |              ^~~~
0_0_39128616_6279.cpp:7:5: error: cannot declare '::main' to be a global variable
    7 | int main()
      |     ^~~~
0_0_39128616_6279.cpp:9:8: error: expected primary-expression before 'A'
    9 | string A,B;
      |        ^
0_0_39128616_6279.cpp:9:8: error: expected '}' before 'A'
0_0_39128616_6279.cpp:8:1: note: to match this '{'
    8 | {
      | ^
0_0_39128616_6279.cpp:9:7: error: expected ')' before 'A'
    9 | string A,B;
      |       ^~
      |       )
0_0_39128616_6279.cpp:7:9: note: to match this '('
    7 | int main()
      |         ^
0_0_39128616_6279.cpp:9:10: error: 'B' was not declared in this scope
    9 | string A,B;
      |          ^
0_0_39128616_6279.cpp:10:1: error: 'cin' does not name a type
   10 | cin >>A>>B;
      | ^~~
0_0_39128616_6279.cpp:11:16: error: 'A' was not declared in this scope
   11 | int len = max (A.length(), B.length()) ;
      |                ^
0_0_39128616_6279.cpp:11:28: error: 'B' was not declared in this scope
   11 | int len = max (A.length(), B.length()) ;
      |                            ^
0_0_39128616_6279.cpp:12:1: error: expected unqualified-id before 'for'
   12 | for (int i = A.length() - 1,j = l; i >= 0; i--,j++)
      | ^~~
0_0_39128616_6279.cpp:12:36: error: 'i' does not name a type
   12 | for (int i = A.length() - 1,j = l; i >= 0; i--,j++)
      |                                    ^
0_0_39128616_6279.cpp:12:44: error: 'i' does not name a type
   12 | for (int i = A.length() - 1,j = l; i >= 0; i--,j++)
      |                                            ^
0_0_39128616_6279.cpp:14:1: error: expected unqualified-id before 'for'
   14 | for (int i = B.length () - 1,j = 1; i >= 0; i--,j++)
      | ^~~
0_0_39128616_6279.cpp:14:37: error: 'i' does not name a type
   14 | for (int i = B.length () - 1,j = 1; i >= 0; i--,j++)
      |                                     ^
0_0_39128616_6279.cpp:14:45: error: 'i' does not name a type
   14 | for (int i = B.length () - 1,j = 1; i >= 0; i--,j++)
      |                                             ^
0_0_39128616_6279.cpp:16:1: error: expected unqualified-id before 'for'
   16 | for(int i = l; i <= len; i++){
      | ^~~
0_0_39128616_6279.cpp:16:16: error: 'i' does not name a type
   16 | for(int i = l; i <= len; i++){
      |                ^
0_0_39128616_6279.cpp:16:26: error: 'i' does not name a type
   16 | for(int i = l; i <= len; i++){
      |                          ^
0_0_39128616_6279.cpp:21:1: error: expected unqualified-id before 'if'
   21 | if(c[len+1])//最后进位可能会导致位数增加
      | ^~
0_0_39128616_6279.cpp:23:1: error: expected unqualified-id before 'for'
   23 | for(int i = len;i >= 1; i--)
      | ^~~
0_0_39128616_6279.cpp:23:17: error: 'i' does not name a type
   23 | for(int i = len;i >= 1; i--)
      |                 ^
0_0_39128616_6279.cpp:23:25: error: 'i' does not name a type
   23 | for(int i = len;i >= 1; i--)
      |                         ^
0_0_39128616_6279.cpp:25:1: error: expected declaration before '}' token
   25 | }
      | ^


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 03:31:14, Gzip enabled