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_31953522_14087.cpp:1:1: error: expected unqualified-id before 'for'
 for(i = 1;i <= n;i++)
 ^
0_0_31953522_14087.cpp:1:11: error: 'i' does not name a type
 for(i = 1;i <= n;i++)
           ^
0_0_31953522_14087.cpp:1:18: error: 'i' does not name a type
 for(i = 1;i <= n;i++)
                  ^
0_0_31953522_14087.cpp:3:33: error: 'dp' was not declared in this scope
         int count = lower_bound(dp,dp + n,INF) - dp;
                                 ^
0_0_31953522_14087.cpp:3:36: error: 'dp' was not declared in this scope
         int count = lower_bound(dp,dp + n,INF) - dp;
                                    ^
0_0_31953522_14087.cpp:3:41: error: 'n' was not declared in this scope
         int count = lower_bound(dp,dp + n,INF) - dp;
                                         ^
0_0_31953522_14087.cpp:3:43: error: 'INF' was not declared in this scope
         int count = lower_bound(dp,dp + n,INF) - dp;
                                           ^
0_0_31953522_14087.cpp:3:46: error: 'lower_bound' was not declared in this scope
         int count = lower_bound(dp,dp + n,INF) - dp;
                                              ^
0_0_31953522_14087.cpp:3:50: error: 'dp' was not declared in this scope
         int count = lower_bound(dp,dp + n,INF) - dp;
                                                  ^


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-30 01:24:04, Gzip enabled