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_23393360_31301.cpp:11:1: error: 'll' does not name a type
 ll res, num[MAX_N];
 ^
0_0_23393360_31301.cpp: In function 'int main()':
0_0_23393360_31301.cpp:32:12: error: 'num' was not declared in this scope
     memset(num, 0, sizeof(num));
            ^
0_0_23393360_31301.cpp:33:5: error: 'll' was not declared in this scope
     ll min_ = INF;
     ^
0_0_23393360_31301.cpp:34:53: error: 'min_' was not declared in this scope
     for (int i = 1;i <= N; ++i) scanf("%d", &p[i]), min_ = min(min_, p[i]);
                                                     ^
0_0_23393360_31301.cpp:35:20: error: 'min_' was not declared in this scope
     int need = 1 - min_;
                    ^
0_0_23393360_31301.cpp:39:7: error: 'res' was not declared in this scope
       res += num[i];
       ^
0_0_23393360_31301.cpp:46:12: error: 'res' was not declared in this scope
     min_ = res;
            ^
0_0_23393360_31301.cpp:47:8: error: expected ';' before 'std_'
     ll std_ = res;
        ^
0_0_23393360_31301.cpp:49:15: error: 'n' was not declared in this scope
       res += (n - 2 * p[i] + 1), min_ = min(min_, res);//printf("%d %d \n", num[i], res);
               ^


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-26 15:56:30, Gzip enabled