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_25972671_28975.cpp:7:1: error: expected initializer before 'const'
 const ll N = 300000 + 5;
 ^
0_0_25972671_28975.cpp:8:7: error: 'll' does not name a type
 const ll maxn = 1000000000;
       ^
0_0_25972671_28975.cpp:9:1: error: 'll' does not name a type
 ll a[N];
 ^
0_0_25972671_28975.cpp: In function 'int main()':
0_0_25972671_28975.cpp:15:2: error: 'll' was not declared in this scope
  ll t;
  ^
0_0_25972671_28975.cpp:16:9: error: 't' was not declared in this scope
  cin >> t;
         ^
0_0_25972671_28975.cpp:19:6: error: expected ';' before 'n'
   ll n;
      ^
0_0_25972671_28975.cpp:20:10: error: 'n' was not declared in this scope
   cin >> n;
          ^
0_0_25972671_28975.cpp:21:11: error: expected ';' before 'i'
   for (ll i = 0; i < n; i++)
           ^
0_0_25972671_28975.cpp:21:18: error: 'i' was not declared in this scope
   for (ll i = 0; i < n; i++)
                  ^
0_0_25972671_28975.cpp:22:11: error: 'a' was not declared in this scope
    cin >> a[i];
           ^
0_0_25972671_28975.cpp:23:6: error: expected ';' before 'l'
   ll l=0, r=maxn;
      ^
0_0_25972671_28975.cpp:24:6: error: expected ';' before 'Max'
   ll Max = 0;
      ^
0_0_25972671_28975.cpp:25:10: error: 'r' was not declared in this scope
   while (r >= l)
          ^
0_0_25972671_28975.cpp:25:15: error: 'l' was not declared in this scope
   while (r >= l)
               ^
0_0_25972671_28975.cpp:27:7: error: expected ';' before 'mid'
    ll mid = (r + l) / 2;
       ^
0_0_25972671_28975.cpp:28:7: error: expected ';' before 'c1'
    ll c1 = 0, c2 = 0;
       ^
0_0_25972671_28975.cpp:29:12: error: expected ';' before 'i'
    for (ll i = 0; i < n; i++)
            ^
0_0_25972671_28975.cpp:29:19: error: 'i' was not declared in this scope
    for (ll i = 0; i < n; i++)
                   ^
0_0_25972671_28975.cpp:31:9: error: 'a' was not declared in this scope
     if (a[i] > mid)c1 += ((a[i] - mid) / 2);
         ^
0_0_25972671_28975.cpp:31:16: error: 'mid' was not declared in this scope
     if (a[i] > mid)c1 += ((a[i] - mid) / 2);
                ^
0_0_25972671_28975.cpp:31:20: error: 'c1' was not declared in this scope
     if (a[i] > mid)c1 += ((a[i] - mid) / 2);
                    ^
0_0_25972671_28975.cpp:32:10: error: 'c2' was not declared in this scope
     else c2 += (mid-a[i]);
          ^
0_0_25972671_28975.cpp:34:8: error: 'c1' was not declared in this scope
    if (c1 >= c2)
        ^
0_0_25972671_28975.cpp:34:14: error: 'c2' was not declared in this scope
    if (c1 >= c2)
              ^
0_0_25972671_28975.cpp:36:5: error: 'Max' was not declared in this scope
     Max = max(Max, mid);
     ^
0_0_25972671_28975.cpp:36:20: error: 'mid' was not declared in this scope
     Max = max(Max, mid);
                    ^
0_0_25972671_28975.cpp:39:13: error: 'mid' was not declared in this scope
    else r = mid - 1;
             ^
0_0_25972671_28975.cpp:41:11: error: 'Max' was not declared in this scope
   cout << Max << endl;
           ^


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 10:23:27, Gzip enabled