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_14722746_13381\Main.java:10: 错误: 非法字符: '#'
#include<bits/stdc++.h>
^
0_0_14722746_13381\Main.java:10: 错误: 需要class, interface或enum
#include<bits/stdc++.h>
        ^
0_0_14722746_13381\Main.java:13: 错误: 需要class, interface或enum
const int maxn = 200001;
^
0_0_14722746_13381\Main.java:14: 错误: 需要class, interface或enum
int n, c;
^
0_0_14722746_13381\Main.java:15: 错误: 需要class, interface或enum
int a[maxn];
^
0_0_14722746_13381\Main.java:16: 错误: 需要class, interface或enum
int buy[maxn], sell[maxn];
^
0_0_14722746_13381\Main.java:17: 错误: 需要class, interface或enum
map<int, int> mp;
^
0_0_14722746_13381\Main.java:18: 错误: 需要class, interface或enum
map<int, int>::iterator it;
^
0_0_14722746_13381\Main.java:19: 错误: 需要class, interface或enum
map<int, int>::reverse_iterator rit;
^
0_0_14722746_13381\Main.java:21: 错误: 需要class, interface或enum
void init()
^
0_0_14722746_13381\Main.java:24: 错误: 需要class, interface或enum
	for (int i = 1; i <= n; i++)
	^
0_0_14722746_13381\Main.java:24: 错误: 需要class, interface或enum
	for (int i = 1; i <= n; i++)
	                ^
0_0_14722746_13381\Main.java:24: 错误: 需要class, interface或enum
	for (int i = 1; i <= n; i++)
	                        ^
0_0_14722746_13381\Main.java:26: 错误: 需要class, interface或enum
	for (int i = 0; i <= n; i++)
	^
0_0_14722746_13381\Main.java:26: 错误: 需要class, interface或enum
	for (int i = 0; i <= n; i++)
	                ^
0_0_14722746_13381\Main.java:26: 错误: 需要class, interface或enum
	for (int i = 0; i <= n; i++)
	                        ^
0_0_14722746_13381\Main.java:28: 错误: 需要class, interface或enum
}
^
0_0_14722746_13381\Main.java:33: 错误: 需要class, interface或enum
	mp[buy[0]] = c;
	^
0_0_14722746_13381\Main.java:34: 错误: 需要class, interface或enum
	ans += 1LL * c * buy[0];
	^
0_0_14722746_13381\Main.java:35: 错误: 需要class, interface或enum
	for (int i = 1; i <= n; i++)
	^
0_0_14722746_13381\Main.java:35: 错误: 需要class, interface或enum
	for (int i = 1; i <= n; i++)
	                ^
0_0_14722746_13381\Main.java:35: 错误: 需要class, interface或enum
	for (int i = 1; i <= n; i++)
	                        ^
0_0_14722746_13381\Main.java:38: 错误: 需要class, interface或enum
		it = mp.begin();
		^
0_0_14722746_13381\Main.java:39: 错误: 需要class, interface或enum
		while (sumc)
		^
0_0_14722746_13381\Main.java:42: 错误: 需要class, interface或enum
			sumc -= tmp;
			^
0_0_14722746_13381\Main.java:43: 错误: 需要class, interface或enum
			it->second -= tmp;
			^
0_0_14722746_13381\Main.java:44: 错误: 需要class, interface或enum
			if (it->second == 0)
			^
0_0_14722746_13381\Main.java:46: 错误: 需要class, interface或enum
			else
			^
0_0_14722746_13381\Main.java:48: 错误: 需要class, interface或enum
		}
		^
0_0_14722746_13381\Main.java:50: 错误: 需要class, interface或enum
		while (it != mp.end() && it->first <= sell[i])
		^
0_0_14722746_13381\Main.java:53: 错误: 需要class, interface或enum
			ans -= 1LL * it->second * sell[i];
			^
0_0_14722746_13381\Main.java:54: 错误: 需要class, interface或enum
			mp.erase(it++);
			^
0_0_14722746_13381\Main.java:55: 错误: 需要class, interface或enum
		}
		^
0_0_14722746_13381\Main.java:57: 错误: 需要class, interface或enum
		while (rit != mp.rend() && rit->first >= buy[i])
		^
0_0_14722746_13381\Main.java:60: 错误: 需要class, interface或enum
			ans -= 1LL * rit->first * rit->second;
			^
0_0_14722746_13381\Main.java:61: 错误: 需要class, interface或enum
			rit = map<int, int>::reverse_iterator(mp.erase((++rit).base()));
			^
0_0_14722746_13381\Main.java:62: 错误: 需要class, interface或enum
		}
		^
0_0_14722746_13381\Main.java:64: 错误: 需要class, interface或enum
		ans += sumc * buy[i];
		^
0_0_14722746_13381\Main.java:65: 错误: 需要class, interface或enum
	}
	^
0_0_14722746_13381\Main.java:66: 错误: 需要class, interface或enum
	for (it = mp.begin(); it != mp.end(); it++)
	                      ^
0_0_14722746_13381\Main.java:66: 错误: 需要class, interface或enum
	for (it = mp.begin(); it != mp.end(); it++)
	                                      ^
0_0_14722746_13381\Main.java:68: 错误: 需要class, interface或enum
	mp.clear();
	^
0_0_14722746_13381\Main.java:69: 错误: 需要class, interface或enum
	return ans;
	^
0_0_14722746_13381\Main.java:70: 错误: 需要class, interface或enum
}
^
0_0_14722746_13381\Main.java:75: 错误: 需要class, interface或enum
	scanf("%d", &T);
	^
0_0_14722746_13381\Main.java:76: 错误: 需要class, interface或enum
	while (T--)
	^
0_0_14722746_13381\Main.java:79: 错误: 需要class, interface或enum
		printf("%I64d\n", solve());
		^
0_0_14722746_13381\Main.java:80: 错误: 需要class, interface或enum
	}
	^
48 个错误


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-27 01:07:39, Gzip enabled