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_23747035_2305.cpp:7:1: error: expected unqualified-id before ']' token
 ];
 ^
0_0_23747035_2305.cpp: In function 'int main()':
0_0_23747035_2305.cpp:12:9: error: expected primary-expression before ')' token
         ) break;
         ^
0_0_23747035_2305.cpp:13:21: error: 'ch' was not declared in this scope
         scanf("%s",&ch);
                     ^
0_0_23747035_2305.cpp:14:9: error: expected primary-expression before '==' token
         ==) { printf("-1\n"); continue;}
         ^
0_0_23747035_2305.cpp:14:11: error: expected primary-expression before ')' token
         ==) { printf("-1\n"); continue;}
           ^
0_0_23747035_2305.cpp:15:9: error: expected primary-expression before ',' token
         ,t=;
         ^
0_0_23747035_2305.cpp:15:10: error: 't' was not declared in this scope
         ,t=;
          ^
0_0_23747035_2305.cpp:15:12: error: expected primary-expression before ';' token
         ,t=;
            ^
0_0_23747035_2305.cpp:16:10: error: 'i' was not declared in this scope
         ;i<n;i++)
          ^
0_0_23747035_2305.cpp:17:30: error: 'else' without a previous 'if'
         if (ch[i]=='H') h++; else t++;
                              ^
0_0_23747035_2305.cpp:19:9: error: expected primary-expression before '!=' token
         != || t%!=) {printf("-1\n"); continue;}
         ^
0_0_23747035_2305.cpp:19:12: error: expected primary-expression before '||' token
         != || t%!=) {printf("-1\n"); continue;}
            ^
0_0_23747035_2305.cpp:19:17: error: expected primary-expression before '!=' token
         != || t%!=) {printf("-1\n"); continue;}
                 ^
0_0_23747035_2305.cpp:19:19: error: expected primary-expression before ')' token
         != || t%!=) {printf("-1\n"); continue;}
                   ^
0_0_23747035_2305.cpp:20:9: error: expected primary-expression before ',' token
         ,tt=;
         ^
0_0_23747035_2305.cpp:20:10: error: 'tt' was not declared in this scope
         ,tt=;
          ^
0_0_23747035_2305.cpp:20:13: error: expected primary-expression before ';' token
         ,tt=;
             ^
0_0_23747035_2305.cpp:21:14: error: expected primary-expression before ';' token
         ;i<n/;i++)
              ^
0_0_23747035_2305.cpp:22:32: error: 'else' without a previous 'if'
          if (ch[i]=='H') hh++; else tt++;
                                ^
0_0_23747035_2305.cpp:23:9: error: expected primary-expression before '==' token
         ==h && tt*==t) {printf(); continue;}
         ^
0_0_23747035_2305.cpp:23:11: error: 'h' was not declared in this scope
         ==h && tt*==t) {printf(); continue;}
           ^
0_0_23747035_2305.cpp:23:20: error: expected primary-expression before '=' token
         ==h && tt*==t) {printf(); continue;}
                    ^
0_0_23747035_2305.cpp:25:10: error: expected primary-expression before ';' token
         -;
          ^
0_0_23747035_2305.cpp:26:10: error: 'k' was not declared in this scope
         ;k<=n/;k++)
          ^
0_0_23747035_2305.cpp:26:15: error: expected primary-expression before ';' token
         ;k<=n/;k++)
               ^


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-09-28 21:05:04, Gzip enabled