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_18229353_13694.cpp: In function 'int main()':
0_0_18229353_13694.cpp:4:15: error: expected primary-expression before '=' token
 #define MAX_N = 100010
               ^
0_0_18229353_13694.cpp:12:10: note: in expansion of macro 'MAX_N'
    int a[MAX_N];
          ^
0_0_18229353_13694.cpp:4:15: error: expected primary-expression before '=' token
 #define MAX_N = 100010
               ^
0_0_18229353_13694.cpp:13:13: note: in expansion of macro 'MAX_N'
    int next[MAX_N];
             ^
0_0_18229353_13694.cpp:15:18: error: 'a' was not declared in this scope
     scanf("%d", &a[i]);
                  ^
0_0_18229353_13694.cpp:19:9: error: 'a' was not declared in this scope
     if (a[i] >= a[start]) {
         ^
0_0_18229353_13694.cpp:23:13: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
       next[j] = i;
             ^
0_0_18229353_13694.cpp:29:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     next[i] = 999999999;
           ^
0_0_18229353_13694.cpp:37:15: error: 'a' was not declared in this scope
     int ans = a[ansIndex];
               ^
0_0_18229353_13694.cpp:38:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
     while (next[ansIndex] < r) {
                         ^
0_0_18229353_13694.cpp:39:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
      ansIndex = next[ansIndex];
                              ^


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-23 00:14:58, Gzip enabled