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_21598759_17781.cpp:19:12: error: stray '#' in program
     if(c=='A') return 0;
            ^
0_0_21598759_17781.cpp:19:18: error: stray '#' in program
     if(c=='A') return 0;
                  ^
0_0_21598759_17781.cpp:20:12: error: stray '#' in program
     if(c=='C') return 1;
            ^
0_0_21598759_17781.cpp:20:18: error: stray '#' in program
     if(c=='C') return 1;
                  ^
0_0_21598759_17781.cpp:21:12: error: stray '#' in program
     if(c=='G') return 2;
            ^
0_0_21598759_17781.cpp:21:18: error: stray '#' in program
     if(c=='G') return 2;
                  ^
0_0_21598759_17781.cpp:22:12: error: stray '#' in program
     if(c=='T') return 3;
            ^
0_0_21598759_17781.cpp:22:18: error: stray '#' in program
     if(c=='T') return 3;
                  ^
0_0_21598759_17781.cpp: In function 'int f(char)':
0_0_21598759_17781.cpp:19:13: error: lvalue required as unary '&' operand
     if(c=='A') return 0;
             ^
0_0_21598759_17781.cpp:19:15: error: expected ')' before ';' token
     if(c=='A') return 0;
               ^
0_0_21598759_17781.cpp:19:16: error: 'A' was not declared in this scope
     if(c=='A') return 0;
                ^
0_0_21598759_17781.cpp:19:22: error: expected primary-expression before ')' token
     if(c=='A') return 0;
                      ^
0_0_21598759_17781.cpp:20:13: error: lvalue required as unary '&' operand
     if(c=='C') return 1;
             ^
0_0_21598759_17781.cpp:20:15: error: expected ')' before ';' token
     if(c=='C') return 1;
               ^
0_0_21598759_17781.cpp:20:16: error: 'C' was not declared in this scope
     if(c=='C') return 1;
                ^
0_0_21598759_17781.cpp:20:22: error: expected primary-expression before ')' token
     if(c=='C') return 1;
                      ^
0_0_21598759_17781.cpp:21:13: error: lvalue required as unary '&' operand
     if(c=='G') return 2;
             ^
0_0_21598759_17781.cpp:21:15: error: expected ')' before ';' token
     if(c=='G') return 2;
               ^
0_0_21598759_17781.cpp:21:16: error: 'G' was not declared in this scope
     if(c=='G') return 2;
                ^
0_0_21598759_17781.cpp:21:22: error: expected primary-expression before ')' token
     if(c=='G') return 2;
                      ^
0_0_21598759_17781.cpp:22:13: error: lvalue required as unary '&' operand
     if(c=='T') return 3;
             ^
0_0_21598759_17781.cpp:22:15: error: expected ')' before ';' token
     if(c=='T') return 3;
               ^
0_0_21598759_17781.cpp:22:16: error: 'T' was not declared in this scope
     if(c=='T') return 3;
                ^
0_0_21598759_17781.cpp:22:22: error: expected primary-expression before ')' token
     if(c=='T') return 3;
                      ^
0_0_21598759_17781.cpp: In function 'int main()':
0_0_21598759_17781.cpp:47:2: error: expected '}' at end of input
  }
  ^


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-06-26 23:14:54, Gzip enabled