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_36702009_19635.cpp:1:1: error: stray '\357' in program
 ï»?include <bits/stdc++.h>
 ^
0_0_36702009_19635.cpp:1:1: error: stray '\273' in program
0_0_36702009_19635.cpp:1:3: error: expected unqualified-id before '?' token
 ï»?include <bits/stdc++.h>
   ^
0_0_36702009_19635.cpp:4:9: error: 'pair' does not name a type
 typedef pair<int, int> pii;
         ^
0_0_36702009_19635.cpp: In function 'void solve(int, int)':
0_0_36702009_19635.cpp:17:5: error: 'vector' was not declared in this scope
     vector<int> pos(r - l);
     ^
0_0_36702009_19635.cpp:17:12: error: expected primary-expression before 'int'
     vector<int> pos(r - l);
            ^
0_0_36702009_19635.cpp:18:10: error: 'pos' was not declared in this scope
     iota(pos.begin(), pos.end(), l);
          ^
0_0_36702009_19635.cpp:18:35: error: 'iota' was not declared in this scope
     iota(pos.begin(), pos.end(), l);
                                   ^
0_0_36702009_19635.cpp:19:75: error: 'sort' was not declared in this scope
     sort(pos.begin(), pos.end(), [&](int i, int j) { return a[i] < a[j]; });
                                                                           ^
0_0_36702009_19635.cpp:20:12: error: expected primary-expression before 'int'
     vector<int> ls, rs;
            ^
0_0_36702009_19635.cpp:21:12: error: expected primary-expression before 'int'
     vector<int> sum(1, 0);
            ^
0_0_36702009_19635.cpp:22:18: error: unable to deduce 'auto&&' from 'pos'
     for (int i : pos) {
                  ^
0_0_36702009_19635.cpp:24:21: error: 'ls' was not declared in this scope
             while (!ls.empty() && ls.back() < i)
                     ^
0_0_36702009_19635.cpp:25:17: error: 'sum' was not declared in this scope
                 sum.pop_back(), ls.pop_back();
                 ^
0_0_36702009_19635.cpp:26:13: error: 'ls' was not declared in this scope
             ls.push_back(i);
             ^
0_0_36702009_19635.cpp:27:13: error: 'sum' was not declared in this scope
             sum.push_back(add(sum.back(), dp[i]));            
             ^
0_0_36702009_19635.cpp:30:21: error: 'rs' was not declared in this scope
             while (!rs.empty() && rs.back() > i)
                     ^
0_0_36702009_19635.cpp:32:17: error: 'ls' was not declared in this scope
             if (ls.empty()) continue;
                 ^
0_0_36702009_19635.cpp:33:39: error: 'ls' was not declared in this scope
             int id1 = partition_point(ls.begin(), ls.end(), [&](int x) { return a[x] < a[i]; }) - ls.begin();
                                       ^
0_0_36702009_19635.cpp:33:95: error: 'partition_point' was not declared in this scope
             int id1 = partition_point(ls.begin(), ls.end(), [&](int x) { return a[x] < a[i]; }) - ls.begin();
                                                                                               ^
0_0_36702009_19635.cpp:34:23: error: 'rs' was not declared in this scope
             int id2 = rs.empty() ? 0 : partition_point(ls.begin(), ls.end(), [&](int x) { return a[x] < a[rs.back()]; }) - ls.begin();
                       ^
0_0_36702009_19635.cpp:35:36: error: 'sum' was not declared in this scope
             dp[i] = add(dp[i], sub(sum[id1], sum[id2]));
                                    ^
0_0_36702009_19635.cpp: In function 'int main()':
0_0_36702009_19635.cpp:43:26: error: 'scanf' was not declared in this scope
     int T; scanf("%d", &T);
                          ^
0_0_36702009_19635.cpp:48:29: error: 'INT_MAX' was not declared in this scope
         for (int i = 1, v = INT_MAX; i <= n; ++i) {
                             ^
0_0_36702009_19635.cpp:53:28: error: 'min' was not declared in this scope
             v = min(v, a[i]);
                            ^
0_0_36702009_19635.cpp:60:28: error: 'max' was not declared in this scope
             v = max(v, a[i]);
                            ^
0_0_36702009_19635.cpp:62:27: error: 'printf' was not declared in this scope
         printf("%d\n", ans);
                           ^


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