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_36422971_21136.cpp:44:13: error: expected unqualified-id before 'long'
 #define int long long
             ^
0_0_36422971_21136.cpp:140:1: note: in expansion of macro 'int'
 int m, s;
 ^
0_0_36422971_21136.cpp: In function 'bool check(long long int)':
0_0_36422971_21136.cpp:150:6: error: 'm' was not declared in this scope
  if (m <= stk[stk_top])return 1;
      ^
0_0_36422971_21136.cpp:151:16: error: 'm' was not declared in this scope
  if (x > 1 && (m - stk[stk_top]+sum-1) / sum <= x-2)return 1;
                ^
0_0_36422971_21136.cpp:160:14: error: 'm' was not declared in this scope
   if (cur >= m)
              ^
0_0_36422971_21136.cpp: In function 'long long int solve()':
0_0_36422971_21136.cpp:181:14: error: 'm' was not declared in this scope
   if (cur >= m)
              ^
0_0_36422971_21136.cpp: In function 'long long int brute_force()':
0_0_36422971_21136.cpp:242:15: error: 'm' was not declared in this scope
    if (cur >= m)ans = i;
               ^
0_0_36422971_21136.cpp: In function 'int main()':
0_0_36422971_21136.cpp:257:15: error: 'm' was not declared in this scope
   cin >> n >> m;
               ^


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 08:14:21, Gzip enabled