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_39283410_15922.cpp:6:1: error: 'll' does not name a type
    6 | ll n,m;
      | ^~
0_0_39283410_15922.cpp: In function 'int main()':
0_0_39283410_15922.cpp:14:22: error: 'n' was not declared in this scope
   14 |                 cin>>n;
      |                      ^
0_0_39283410_15922.cpp:18:17: error: 'll' was not declared in this scope; did you mean 'l'?
   18 |                 ll num=1e9;
      |                 ^~
      |                 l
0_0_39283410_15922.cpp:19:19: error: expected ';' before 'ans'
   19 |                 ll ans=0;
      |                   ^~~~
      |                   ;
0_0_39283410_15922.cpp:25:41: error: 'ans' was not declared in this scope; did you mean 'abs'?
   25 |                                         ans+=b[i]-b[i-1]+1;
      |                                         ^~~
      |                                         abs
0_0_39283410_15922.cpp:30:41: error: 'ans' was not declared in this scope; did you mean 'abs'?
   30 |                                         ans+=b[i-1]-b[i]+1;
      |                                         ^~~
      |                                         abs
0_0_39283410_15922.cpp:35:17: error: 'num' was not declared in this scope; did you mean 'enum'?
   35 |                 num=min(ans,num);
      |                 ^~~
      |                 enum
0_0_39283410_15922.cpp:35:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
   35 |                 num=min(ans,num);
      |                         ^~~
      |                         abs
0_0_39283410_15922.cpp:37:19: error: expected ';' before 'cnt'
   37 |                 ll cnt=0;
      |                   ^~~~
      |                   ;
0_0_39283410_15922.cpp:42:41: error: 'cnt' was not declared in this scope; did you mean 'int'?
   42 |                                         cnt+=b[i]-b[i-1]+1;
      |                                         ^~~
      |                                         int
0_0_39283410_15922.cpp:47:41: error: 'cnt' was not declared in this scope; did you mean 'int'?
   47 |                                         cnt+=b[i-1]-b[i]+1;
      |                                         ^~~
      |                                         int
0_0_39283410_15922.cpp:52:25: error: 'cnt' was not declared in this scope; did you mean 'int'?
   52 |                 num=min(cnt,num);
      |                         ^~~
      |                         int


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-07-02 22:21:27, Gzip enabled