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_17764667_21615.cpp: In function 'int solve(int)':
0_0_17764667_21615.cpp:6:18: error: expected primary-expression before '=' token
     digit[++len]?=?n%10; 
                  ^
0_0_17764667_21615.cpp:6:19: error: expected primary-expression before '?' token
     digit[++len]?=?n%10; 
                   ^
0_0_17764667_21615.cpp:6:24: error: expected ':' before ';' token
     digit[++len]?=?n%10; 
                        ^
0_0_17764667_21615.cpp:6:24: error: expected primary-expression before ';' token
0_0_17764667_21615.cpp:6:24: error: expected ':' before ';' token
0_0_17764667_21615.cpp:6:24: error: expected primary-expression before ';' token
0_0_17764667_21615.cpp:14:14: error: 'f' was not declared in this scope
         ans+=f[i][j]; 
              ^
0_0_17764667_21615.cpp: In function 'int main()':
0_0_17764667_21615.cpp:22:2: error: 'f' was not declared in this scope
  f[0][0]=1;
  ^
0_0_17764667_21615.cpp:23:53: error: 'k' was not declared in this scope
  for (int i=1;i<=7;++i) for (int j=0;j<=9;++j) for (k=0;k<=9;++k) if (j!=4&&!(j==6&&k==2)) f[i][j]+=f[i-1][k];
                                                     ^
0_0_17764667_21615.cpp:24:23: error: 'l' was not declared in this scope
  while (scanf("%d%d",&l,&r)!=EOF) {
                       ^
0_0_17764667_21615.cpp:24:26: error: 'r' was not declared in this scope
  while (scanf("%d%d",&l,&r)!=EOF) {
                          ^


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-17 04:29:51, Gzip enabled