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_38698962_8649.cpp: In function 'int main()':
0_0_38698962_8649.cpp:9:24: error: expected ';' before 'int'
    9 |                 cin>>s1
      |                        ^
      |                        ;
   10 |                 int a=0,n,sum=0;
      |                 ~~~     
0_0_38698962_8649.cpp:11:17: error: 'n' was not declared in this scope
   11 |                 n=s1.length();
      |                 ^
0_0_38698962_8649.cpp:17:25: error: 'a' was not declared in this scope
   17 |                         a*=10;
      |                         ^
0_0_38698962_8649.cpp:20:23: error: 'a' was not declared in this scope
   20 |                 while(a!=1){
      |                       ^
0_0_38698962_8649.cpp:22:25: error: 'sum' was not declared in this scope
   22 |                         sum++;
      |                         ^~~
0_0_38698962_8649.cpp:24:20: error: 'sum' was not declared in this scope
   24 |                 if(sum>5){
      |                    ^~~
0_0_38698962_8649.cpp:28:23: error: 'sum' was not declared in this scope
   28 |                 cout<<sum<<"\n";
      |                       ^~~


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-05-29 22:10:46, Gzip enabled