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_39292639_25190\Main.java:2: 错误: 非法字符: '#'
#include <algorithm>
^
0_0_39292639_25190\Main.java:2: 错误: 需要class, interface或enum
#include <algorithm>
         ^
0_0_39292639_25190\Main.java:3: 错误: 非法字符: '#'
#include <iostream>
^
0_0_39292639_25190\Main.java:4: 错误: 非法字符: '#'
#include <vector>
^
0_0_39292639_25190\Main.java:6: 错误: 非法字符: '#'
#define pii pair<int, int>
^
0_0_39292639_25190\Main.java:10: 错误: 需要class, interface或enum
bool cmp(pii a, pii b) {
^
0_0_39292639_25190\Main.java:13: 错误: 需要class, interface或enum
  else
  ^
0_0_39292639_25190\Main.java:15: 错误: 需要class, interface或enum
}
^
0_0_39292639_25190\Main.java:19: 错误: 需要class, interface或enum
  cin >> t;
  ^
0_0_39292639_25190\Main.java:21: 错误: 需要class, interface或enum
  while (t--) {
  ^
0_0_39292639_25190\Main.java:23: 错误: 需要class, interface或enum
    cin >> n;
    ^
0_0_39292639_25190\Main.java:25: 错误: 需要class, interface或enum
    vector<pii> a(1010);
    ^
0_0_39292639_25190\Main.java:26: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++) cin >> a[i].first;
    ^
0_0_39292639_25190\Main.java:26: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++) cin >> a[i].first;
                    ^
0_0_39292639_25190\Main.java:26: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++) cin >> a[i].first;
                            ^
0_0_39292639_25190\Main.java:27: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++) cin >> a[i].second;
    ^
0_0_39292639_25190\Main.java:27: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++) cin >> a[i].second;
                    ^
0_0_39292639_25190\Main.java:27: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++) cin >> a[i].second;
                            ^
0_0_39292639_25190\Main.java:29: 错误: 需要class, interface或enum
    int ans = 0;
    ^
0_0_39292639_25190\Main.java:30: 错误: 需要class, interface或enum
    vector<bool> vis(1010);
    ^
0_0_39292639_25190\Main.java:31: 错误: 需要class, interface或enum
    sort(a.begin() + 1, a.begin() + n + 1, cmp);
    ^
0_0_39292639_25190\Main.java:32: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++) {
    ^
0_0_39292639_25190\Main.java:32: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++) {
                    ^
0_0_39292639_25190\Main.java:32: 错误: 需要class, interface或enum
    for (int i = 1; i <= n; i++) {
                            ^
0_0_39292639_25190\Main.java:34: 错误: 需要class, interface或enum
      for (j = a[i].first; j > 0; j--)
      ^
0_0_39292639_25190\Main.java:34: 错误: 需要class, interface或enum
      for (j = a[i].first; j > 0; j--)
                           ^
0_0_39292639_25190\Main.java:34: 错误: 需要class, interface或enum
      for (j = a[i].first; j > 0; j--)
                                  ^
0_0_39292639_25190\Main.java:37: 错误: 需要class, interface或enum
          break;
          ^
0_0_39292639_25190\Main.java:38: 错误: 需要class, interface或enum
        }
        ^
0_0_39292639_25190\Main.java:40: 错误: 需要class, interface或enum
    }
    ^
0_0_39292639_25190\Main.java:43: 错误: 需要class, interface或enum
  }
  ^
31 个错误


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-12-01 12:43:11, Gzip enabled