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_38703320_16687.cpp:7:9: error: 'pair' does not name a type
    7 | typedef pair<int, int> PII;
      |         ^~~~
0_0_38703320_16687.cpp: In function 'void solve()':
0_0_38703320_16687.cpp:16:5: error: 'cin' was not declared in this scope
   16 |     cin >> n;
      |     ^~~
0_0_38703320_16687.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | #define llu unsigned long long
0_0_38703320_16687.cpp:17:5: error: 'vector' was not declared in this scope
   17 |     vector<int> a(n + 7);
      |     ^~~~~~
0_0_38703320_16687.cpp:1:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
  +++ |+#include <vector>
    1 | #define llu unsigned long long
0_0_38703320_16687.cpp:17:12: error: expected primary-expression before 'int'
   17 |     vector<int> a(n + 7);
      |            ^~~
0_0_38703320_16687.cpp:18:5: error: 'map' was not declared in this scope
   18 |     map<int, int> mp;
      |     ^~~
0_0_38703320_16687.cpp:1:1: note: 'std::map' is defined in header '<map>'; did you forget to '#include <map>'?
  +++ |+#include <map>
    1 | #define llu unsigned long long
0_0_38703320_16687.cpp:18:9: error: expected primary-expression before 'int'
   18 |     map<int, int> mp;
      |         ^~~
0_0_38703320_16687.cpp:20:9: error: expected primary-expression before 'int'
   20 |     map<int, int> st;
      |         ^~~
0_0_38703320_16687.cpp:22:16: error: 'a' was not declared in this scope
   22 |         cin >> a[i];
      |                ^
0_0_38703320_16687.cpp:23:10: error: 'a' was not declared in this scope
   23 |     sort(a.begin() + 1, a.begin() + 1 + n);
      |          ^
0_0_38703320_16687.cpp:23:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   23 |     sort(a.begin() + 1, a.begin() + 1 + n);
      |     ^~~~
      |     short
0_0_38703320_16687.cpp:26:14: error: 'mp' was not declared in this scope
   26 |         if (!mp[a[i]])
      |              ^~
0_0_38703320_16687.cpp:27:31: error: 'st' was not declared in this scope; did you mean 'std'?
   27 |             mp[a[i]] = ++cnt, st[cnt]++;
      |                               ^~
      |                               std
0_0_38703320_16687.cpp:29:13: error: 'st' was not declared in this scope; did you mean 'std'?
   29 |             st[mp[a[i]]]++;
      |             ^~
      |             std
0_0_38703320_16687.cpp:31:12: error: expected primary-expression before 'int'
   31 |     vector<int> suf(n + 7);
      |            ^~~
0_0_38703320_16687.cpp:33:9: error: 'suf' was not declared in this scope
   33 |         suf[i] = suf[i - 1] + st[i];
      |         ^~~
0_0_38703320_16687.cpp:33:31: error: 'st' was not declared in this scope; did you mean 'std'?
   33 |         suf[i] = suf[i - 1] + st[i];
      |                               ^~
      |                               std
0_0_38703320_16687.cpp:35:19: error: expected primary-expression before 'int'
   35 |     vector<vector<int>> dp(n + 7, vector<int>(n + 7));
      |                   ^~~
0_0_38703320_16687.cpp:36:19: error: expected primary-expression before 'int'
   36 |     vector<vector<int>> sum(n + 7, vector<int>(n + 7));
      |                   ^~~
0_0_38703320_16687.cpp:40:9: error: 'dp' was not declared in this scope
   40 |         dp[1][i] = 1;
      |         ^~
0_0_38703320_16687.cpp:41:9: error: 'sum' was not declared in this scope
   41 |         sum[1][i] = sum[1][i - 1] + dp[1][i];
      |         ^~~
0_0_38703320_16687.cpp:49:17: error: 'suf' was not declared in this scope
   49 |             if (suf[j] - 1 >= i - 1)
      |                 ^~~
0_0_38703320_16687.cpp:51:17: error: 'dp' was not declared in this scope
   51 |                 dp[i][j] = sum[i - 1][j];
      |                 ^~
0_0_38703320_16687.cpp:51:28: error: 'sum' was not declared in this scope
   51 |                 dp[i][j] = sum[i - 1][j];
      |                            ^~~
0_0_38703320_16687.cpp:59:9: error: 'cout' was not declared in this scope
   59 |         cout << sum[i][cnt] % mod << endl;
      |         ^~~~
0_0_38703320_16687.cpp:59:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_38703320_16687.cpp:59:17: error: 'sum' was not declared in this scope
   59 |         cout << sum[i][cnt] % mod << endl;
      |                 ^~~
0_0_38703320_16687.cpp: In function 'int main()':
0_0_38703320_16687.cpp:64:5: error: 'ios' has not been declared
   64 |     ios::sync_with_stdio(false);
      |     ^~~
0_0_38703320_16687.cpp:65:5: error: 'cin' was not declared in this scope
   65 |     cin.tie(0);
      |     ^~~
0_0_38703320_16687.cpp:65:5: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_38703320_16687.cpp:66:5: error: 'cout' was not declared in this scope
   66 |     cout.tie(0);
      |     ^~~~
0_0_38703320_16687.cpp:66:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?


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-10-06 19:04:05, Gzip enabled