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_29873076_27255.cpp: In function 'int main()':
0_0_29873076_27255.cpp:3:27: error: 'n' was not declared in this scope
     while (scanf("%d%d", &n, &m) > 0)
                           ^
0_0_29873076_27255.cpp:3:31: error: 'm' was not declared in this scope
     while (scanf("%d%d", &n, &m) > 0)
                               ^
0_0_29873076_27255.cpp:3:32: error: 'scanf' was not declared in this scope
     while (scanf("%d%d", &n, &m) > 0)
                                ^
0_0_29873076_27255.cpp:7:26: error: 'a' was not declared in this scope
             scanf("%d", &a[i]);
                          ^
0_0_29873076_27255.cpp:8:13: error: 't' was not declared in this scope
             t[i - 1] = a[i];
             ^
0_0_29873076_27255.cpp:10:14: error: 't' was not declared in this scope
         sort(t, t + n);
              ^
0_0_29873076_27255.cpp:10:22: error: 'sort' was not declared in this scope
         sort(t, t + n);
                      ^
0_0_29873076_27255.cpp:11:9: error: 'cnt' was not declared in this scope
         cnt = unique(t, t + n) - t;
         ^
0_0_29873076_27255.cpp:11:30: error: 'unique' was not declared in this scope
         cnt = unique(t, t + n) - t;
                              ^
0_0_29873076_27255.cpp:14:46: error: 'a' was not declared in this scope
             int tt = lower_bound(t, t + cnt, a[i]) - t + 1;
                                              ^
0_0_29873076_27255.cpp:14:50: error: 'lower_bound' was not declared in this scope
             int tt = lower_bound(t, t + cnt, a[i]) - t + 1;
                                                  ^
0_0_29873076_27255.cpp:15:13: error: 'fp' was not declared in this scope
             fp[tt] = a[i];
             ^
0_0_29873076_27255.cpp:18:14: error: 'init' was not declared in this scope
         init();
              ^
0_0_29873076_27255.cpp:21:13: error: 'root' was not declared in this scope
             root[i] = root[i - 1];
             ^
0_0_29873076_27255.cpp:22:19: error: 'a' was not declared in this scope
             build(a[i], root[i], 1, n);
                   ^
0_0_29873076_27255.cpp:22:38: error: 'build' was not declared in this scope
             build(a[i], root[i], 1, n);
                                      ^
0_0_29873076_27255.cpp:27:13: error: 'maxn1' was not declared in this scope
             maxn1 = 0;  maxn2 = 0;
             ^
0_0_29873076_27255.cpp:27:25: error: 'maxn2' was not declared in this scope
             maxn1 = 0;  maxn2 = 0;
                         ^
0_0_29873076_27255.cpp:32:30: error: 'printf' was not declared in this scope
                 printf("-1\n");
                              ^
0_0_29873076_27255.cpp:35:27: error: 'root' was not declared in this scope
             maxn1 = query(root[qr], root[ql - 1], len, 1, n);
                           ^
0_0_29873076_27255.cpp:35:60: error: 'query' was not declared in this scope
             maxn1 = query(root[qr], root[ql - 1], len, 1, n);
                                                            ^
0_0_29873076_27255.cpp:40:21: error: 'fp' was not declared in this scope
                 if (fp[maxn1] < fp[maxn2] + fp[ans])
                     ^
0_0_29873076_27255.cpp:42:69: error: 'printf' was not declared in this scope
                     printf("%lld\n", fp[maxn1] + fp[maxn2] + fp[ans]);
                                                                     ^
0_0_29873076_27255.cpp:51:26: error: 'printf' was not declared in this scope
             printf("-1\n");
                          ^


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-19 08:39:00, Gzip enabled