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_20989572_30848.cpp:14:26: error: stray '#' in program
  printf("Case #%d: ",cas++);
                          ^
0_0_20989572_30848.cpp:14:31: error: stray '#' in program
  printf("Case #%d: ",cas++);
                               ^
0_0_20989572_30848.cpp:16:24: error: stray '#' in program
      for(int i=0;i<n;i++)
                        ^
0_0_20989572_30848.cpp:16:29: error: stray '#' in program
      for(int i=0;i<n;i++)
                             ^
0_0_20989572_30848.cpp:40:23: error: stray '#' in program
   for(int i=0;i<num;i++)
                       ^
0_0_20989572_30848.cpp:40:28: error: stray '#' in program
   for(int i=0;i<num;i++)
                            ^
0_0_20989572_30848.cpp:44:27: error: stray '#' in program
       for(int i=0;i<res;i++)
                           ^
0_0_20989572_30848.cpp:44:32: error: stray '#' in program
       for(int i=0;i<res;i++)
                                ^
0_0_20989572_30848.cpp:51:24: error: stray '#' in program
      for(int i=0;i<n;i++)
                        ^
0_0_20989572_30848.cpp:51:29: error: stray '#' in program
      for(int i=0;i<n;i++)
                             ^
0_0_20989572_30848.cpp:52:19: error: stray '#' in program
   printf("%c",'a'+i%3);
                   ^
0_0_20989572_30848.cpp: In function 'int main()':
0_0_20989572_30848.cpp:14:29: error: expected ')' before ';' token
  printf("Case #%d: ",cas++);
                             ^
0_0_20989572_30848.cpp:14:32: error: lvalue required as unary '&' operand
  printf("Case #%d: ",cas++);
                                ^
0_0_20989572_30848.cpp:14:35: error: expected primary-expression before ')' token
  printf("Case #%d: ",cas++);
                                   ^
0_0_20989572_30848.cpp:16:27: error: expected ')' before ';' token
      for(int i=0;i<n;i++)
                           ^
0_0_20989572_30848.cpp:16:30: error: lvalue required as unary '&' operand
      for(int i=0;i<n;i++)
                              ^
0_0_20989572_30848.cpp:16:33: error: expected primary-expression before ')' token
      for(int i=0;i<n;i++)
                                 ^
0_0_20989572_30848.cpp:18:2: error: 'else' without a previous 'if'
  else if(m==2)
  ^
0_0_20989572_30848.cpp:40:26: error: expected ')' before ';' token
   for(int i=0;i<num;i++)
                          ^
0_0_20989572_30848.cpp:40:29: error: lvalue required as unary '&' operand
   for(int i=0;i<num;i++)
                             ^
0_0_20989572_30848.cpp:40:32: error: expected primary-expression before ')' token
   for(int i=0;i<num;i++)
                                ^
0_0_20989572_30848.cpp:44:30: error: expected ')' before ';' token
       for(int i=0;i<res;i++)
                              ^
0_0_20989572_30848.cpp:44:33: error: lvalue required as unary '&' operand
       for(int i=0;i<res;i++)
                                 ^
0_0_20989572_30848.cpp:44:36: error: expected primary-expression before ')' token
       for(int i=0;i<res;i++)
                                    ^
0_0_20989572_30848.cpp:46:3: error: expected '}' before 'else'
   else if(res==5)
   ^
0_0_20989572_30848.cpp:46:3: error: expected '}' before 'else'
0_0_20989572_30848.cpp:46:11: error: 'res' was not declared in this scope
   else if(res==5)
           ^
0_0_20989572_30848.cpp: At global scope:
0_0_20989572_30848.cpp:50:2: error: expected unqualified-id before 'else'
  else
  ^
0_0_20989572_30848.cpp:51:18: error: 'i' does not name a type
      for(int i=0;i<n;i++)
                  ^
0_0_20989572_30848.cpp:51:22: error: 'i' does not name a type
      for(int i=0;i<n;i++)
                      ^
0_0_20989572_30848.cpp:51:30: error: expected unqualified-id before numeric constant
      for(int i=0;i<n;i++)
                              ^
0_0_20989572_30848.cpp:51:30: error: expected constructor, destructor, or type conversion before numeric constant
0_0_20989572_30848.cpp:51:33: error: expected unqualified-id before ')' token
      for(int i=0;i<n;i++)
                                 ^
0_0_20989572_30848.cpp:52:23: error: 'i' does not name a type
   printf("%c",'a'+i%3);
                       ^
0_0_20989572_30848.cpp:53:8: error: expected constructor, destructor, or type conversion before '(' token
  printf("\n");
        ^
0_0_20989572_30848.cpp:54:5: error: expected declaration before '}' token
     }
     ^


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 06:20:00, Gzip enabled