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_38816635_12836.cpp: In function 'int main()':
0_0_38816635_12836.cpp:11:17: error: 'amp' was not declared in this scope
   11 |         if(i>=1&&i<10) num[i+i]=1;
      |                 ^~~
0_0_38816635_12836.cpp:11:25: error: expected ')' before ';' token
   11 |         if(i>=1&&i<10) num[i+i]=1;
      |           ~             ^
      |                         )
0_0_38816635_12836.cpp:11:30: error: expected ';' before ')' token
   11 |         if(i>=1&&i<10) num[i+i]=1;
      |                              ^
      |                              ;
0_0_38816635_12836.cpp:12:18: error: 'amp' was not declared in this scope
   12 |         if(i>=10&&i<100) num[i+i%10+i/10]=1;
      |                  ^~~
0_0_38816635_12836.cpp:12:26: error: expected ')' before ';' token
   12 |         if(i>=10&&i<100) num[i+i%10+i/10]=1;
      |           ~              ^
      |                          )
0_0_38816635_12836.cpp:12:32: error: expected ';' before ')' token
   12 |         if(i>=10&&i<100) num[i+i%10+i/10]=1;
      |                                ^
      |                                ;
0_0_38816635_12836.cpp:13:19: error: 'amp' was not declared in this scope
   13 |         if(i>=100&&i<1000) num[i+i%10+(i%100)/10+i/100]=1;
      |                   ^~~
0_0_38816635_12836.cpp:13:27: error: expected ')' before ';' token
   13 |         if(i>=100&&i<1000) num[i+i%10+(i%100)/10+i/100]=1;
      |           ~               ^
      |                           )
0_0_38816635_12836.cpp:13:34: error: expected ';' before ')' token
   13 |         if(i>=100&&i<1000) num[i+i%10+(i%100)/10+i/100]=1;
      |                                  ^
      |                                  ;
0_0_38816635_12836.cpp:14:20: error: 'amp' was not declared in this scope
   14 |         if(i>=1000&&i<10000) num[i+i%10+(i%100)/10+(i%1000)/100+i/1000]=1;
      |                    ^~~
0_0_38816635_12836.cpp:14:28: error: expected ')' before ';' token
   14 |         if(i>=1000&&i<10000) num[i+i%10+(i%100)/10+(i%1000)/100+i/1000]=1;
      |           ~                ^
      |                            )
0_0_38816635_12836.cpp:14:36: error: expected ';' before ')' token
   14 |         if(i>=1000&&i<10000) num[i+i%10+(i%100)/10+(i%1000)/100+i/1000]=1;
      |                                    ^
      |                                    ;


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-22 15:56:32, Gzip enabled