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_21598534_1763.cpp:7:12: error: stray '#' in program
  if(s[0]=='T')
            ^
0_0_21598534_1763.cpp:7:18: error: stray '#' in program
  if(s[0]=='T')
                  ^
0_0_21598534_1763.cpp:10:13: error: stray '#' in program
   if(s[0]=='J')
             ^
0_0_21598534_1763.cpp:10:19: error: stray '#' in program
   if(s[0]=='J')
                   ^
0_0_21598534_1763.cpp:13:14: error: stray '#' in program
    if(s[0]=='Q')
              ^
0_0_21598534_1763.cpp:13:20: error: stray '#' in program
    if(s[0]=='Q')
                    ^
0_0_21598534_1763.cpp:16:15: error: stray '#' in program
     if(s[0]=='K')
               ^
0_0_21598534_1763.cpp:16:21: error: stray '#' in program
     if(s[0]=='K')
                     ^
0_0_21598534_1763.cpp:19:16: error: stray '#' in program
      if(s[0]=='A')
                ^
0_0_21598534_1763.cpp:19:22: error: stray '#' in program
      if(s[0]=='A')
                      ^
0_0_21598534_1763.cpp:22:17: error: stray '#' in program
       ans=s[0]-'0';
                 ^
0_0_21598534_1763.cpp:22:23: error: stray '#' in program
       ans=s[0]-'0';
                       ^
0_0_21598534_1763.cpp:23:12: error: stray '#' in program
  if(s[1]=='C')
            ^
0_0_21598534_1763.cpp:23:18: error: stray '#' in program
  if(s[1]=='C')
                  ^
0_0_21598534_1763.cpp:26:13: error: stray '#' in program
   if(s[1]=='D')
             ^
0_0_21598534_1763.cpp:26:19: error: stray '#' in program
   if(s[1]=='D')
                   ^
0_0_21598534_1763.cpp:29:14: error: stray '#' in program
    if(s[1]=='S')
              ^
0_0_21598534_1763.cpp:29:20: error: stray '#' in program
    if(s[1]=='S')
                    ^
0_0_21598534_1763.cpp:32:15: error: stray '#' in program
     if(s[1]=='H')
               ^
0_0_21598534_1763.cpp:32:21: error: stray '#' in program
     if(s[1]=='H')
                     ^
0_0_21598534_1763.cpp: In function 'int fun(char*)':
0_0_21598534_1763.cpp:7:13: error: lvalue required as unary '&' operand
  if(s[0]=='T')
             ^
0_0_21598534_1763.cpp:7:15: error: expected ')' before ';' token
  if(s[0]=='T')
               ^
0_0_21598534_1763.cpp:7:16: error: 'T' was not declared in this scope
  if(s[0]=='T')
                ^
0_0_21598534_1763.cpp:7:22: error: expected primary-expression before ')' token
  if(s[0]=='T')
                      ^
0_0_21598534_1763.cpp:9:2: error: 'else' without a previous 'if'
  else
  ^
0_0_21598534_1763.cpp:10:14: error: lvalue required as unary '&' operand
   if(s[0]=='J')
              ^
0_0_21598534_1763.cpp:10:16: error: expected ')' before ';' token
   if(s[0]=='J')
                ^
0_0_21598534_1763.cpp:10:17: error: 'J' was not declared in this scope
   if(s[0]=='J')
                 ^
0_0_21598534_1763.cpp:10:23: error: expected primary-expression before ')' token
   if(s[0]=='J')
                       ^
0_0_21598534_1763.cpp:12:3: error: 'else' without a previous 'if'
   else
   ^
0_0_21598534_1763.cpp:13:15: error: lvalue required as unary '&' operand
    if(s[0]=='Q')
               ^
0_0_21598534_1763.cpp:13:17: error: expected ')' before ';' token
    if(s[0]=='Q')
                 ^
0_0_21598534_1763.cpp:13:18: error: 'Q' was not declared in this scope
    if(s[0]=='Q')
                  ^
0_0_21598534_1763.cpp:13:24: error: expected primary-expression before ')' token
    if(s[0]=='Q')
                        ^
0_0_21598534_1763.cpp:15:4: error: 'else' without a previous 'if'
    else
    ^
0_0_21598534_1763.cpp:16:16: error: lvalue required as unary '&' operand
     if(s[0]=='K')
                ^
0_0_21598534_1763.cpp:16:18: error: expected ')' before ';' token
     if(s[0]=='K')
                  ^
0_0_21598534_1763.cpp:16:19: error: 'K' was not declared in this scope
     if(s[0]=='K')
                   ^
0_0_21598534_1763.cpp:16:25: error: expected primary-expression before ')' token
     if(s[0]=='K')
                         ^
0_0_21598534_1763.cpp:18:5: error: 'else' without a previous 'if'
     else
     ^
0_0_21598534_1763.cpp:19:17: error: lvalue required as unary '&' operand
      if(s[0]=='A')
                 ^
0_0_21598534_1763.cpp:19:19: error: expected ')' before ';' token
      if(s[0]=='A')
                   ^
0_0_21598534_1763.cpp:19:20: error: 'A' was not declared in this scope
      if(s[0]=='A')
                    ^
0_0_21598534_1763.cpp:19:26: error: expected primary-expression before ')' token
      if(s[0]=='A')
                          ^
0_0_21598534_1763.cpp:21:6: error: 'else' without a previous 'if'
      else
      ^
0_0_21598534_1763.cpp:22:18: error: lvalue required as unary '&' operand
       ans=s[0]-'0';
                  ^
0_0_21598534_1763.cpp:23:13: error: lvalue required as unary '&' operand
  if(s[1]=='C')
             ^
0_0_21598534_1763.cpp:23:15: error: expected ')' before ';' token
  if(s[1]=='C')
               ^
0_0_21598534_1763.cpp:23:16: error: 'C' was not declared in this scope
  if(s[1]=='C')
                ^
0_0_21598534_1763.cpp:23:22: error: expected primary-expression before ')' token
  if(s[1]=='C')
                      ^
0_0_21598534_1763.cpp:25:2: error: 'else' without a previous 'if'
  else
  ^
0_0_21598534_1763.cpp:26:14: error: lvalue required as unary '&' operand
   if(s[1]=='D')
              ^
0_0_21598534_1763.cpp:26:16: error: expected ')' before ';' token
   if(s[1]=='D')
                ^
0_0_21598534_1763.cpp:26:17: error: 'D' was not declared in this scope
   if(s[1]=='D')
                 ^
0_0_21598534_1763.cpp:26:23: error: expected primary-expression before ')' token
   if(s[1]=='D')
                       ^
0_0_21598534_1763.cpp:28:3: error: 'else' without a previous 'if'
   else
   ^
0_0_21598534_1763.cpp:29:15: error: lvalue required as unary '&' operand
    if(s[1]=='S')
               ^
0_0_21598534_1763.cpp:29:17: error: expected ')' before ';' token
    if(s[1]=='S')
                 ^
0_0_21598534_1763.cpp:29:18: error: 'S' was not declared in this scope
    if(s[1]=='S')
                  ^
0_0_21598534_1763.cpp:29:24: error: expected primary-expression before ')' token
    if(s[1]=='S')
                        ^
0_0_21598534_1763.cpp:31:4: error: 'else' without a previous 'if'
    else
    ^
0_0_21598534_1763.cpp:32:16: error: lvalue required as unary '&' operand
     if(s[1]=='H')
                ^
0_0_21598534_1763.cpp:32:18: error: expected ')' before ';' token
     if(s[1]=='H')
                  ^
0_0_21598534_1763.cpp:32:19: error: 'H' was not declared in this scope
     if(s[1]=='H')
                   ^
0_0_21598534_1763.cpp:32:25: error: expected primary-expression before ')' token
     if(s[1]=='H')
                         ^


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-02 06:22:26, Gzip enabled