Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

不知这是不是OJ系统的一个bug?当注释中包含“中”字,会造成Compile Error、Wrong answer

Posted by 634772208 at 2015-06-18 01:27:11
如果在代码里面的注释中包含了一个"中"字的话,会造成Compile Error、Wrong answer,比如
1000题吧(语言C++)

1、可以AC
#include <iostream>
using namespace std;
int main()
{
	int a,b;
	cin >> a >> b;
	cout << a+b << endl;
	return 0;
}

2、Wrong answer
#include <iostream>
using namespace std;
int main()
{
	int a,b;//中
	cin >> a >> b;
	cout << a+b << endl;
	return 0;
}

3、Compile Error
#include <iostream>
using namespace std;
int main()
{
	//中
	int a,b;
	cin >> a >> b;
	cout << a+b << endl;
	return 0;
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator