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_32077372_17234.cpp:18:2: error: expected initializer before 'if'
  if(len <= 0) return c4 == X && c7 == Y;
  ^
0_0_32077372_17234.cpp:19:2: error: expected unqualified-id before 'if'
  if(!flag && dp[len][c4][c7] != -1) return dp[len][c4][c7];
  ^
0_0_32077372_17234.cpp:20:12: error: 'flag' was not declared in this scope
  int end = flag ? bits[len] : 9;
            ^
0_0_32077372_17234.cpp:20:24: error: 'len' was not declared in this scope
  int end = flag ? bits[len] : 9;
                        ^
0_0_32077372_17234.cpp:22:2: error: expected unqualified-id before 'for'
  for(int i=0;i<=end;i++)
  ^
0_0_32077372_17234.cpp:22:14: error: 'i' does not name a type
  for(int i=0;i<=end;i++)
              ^
0_0_32077372_17234.cpp:22:21: error: 'i' does not name a type
  for(int i=0;i<=end;i++)
                     ^
0_0_32077372_17234.cpp:31:2: error: expected unqualified-id before 'if'
  if(!flag)
  ^
0_0_32077372_17234.cpp:33:5: error: expected unqualified-id before 'return'
     return res;
     ^
0_0_32077372_17234.cpp:34:1: 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-16 14:23:58, Gzip enabled