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_31908092_18284\Main.java:1: 错误: 非法字符: '#'
#include<iostream>
^
0_0_31908092_18284\Main.java:1: 错误: 需要class, interface或enum
#include<iostream>
        ^
0_0_31908092_18284\Main.java:2: 错误: 非法字符: '#'
#include<string>
^
0_0_31908092_18284\Main.java:3: 错误: 需要class, interface或enum
using namespace std;int main(){	int n,a,b;	cin>>n;	while(n--)	{		int sum1=0,sum2=0;		cin>>a>>b;		for(int i=1;i<=a/2;++i)		{			if(a%i==0)			sum1+=i;		}		for(int i=1;i<=b/2;++i)		{			if(b%i==0)			sum2+=i;		}		if(sum1==b&&sum2==a)		cout<<"YES"<<endl;		else		cout<<"NO"<<endl;	}	return 0;}   
                    ^
0_0_31908092_18284\Main.java:3: 错误: 需要class, interface或enum
using namespace std;int main(){	int n,a,b;	cin>>n;	while(n--)	{		int sum1=0,sum2=0;		cin>>a>>b;		for(int i=1;i<=a/2;++i)		{			if(a%i==0)			sum1+=i;		}		for(int i=1;i<=b/2;++i)		{			if(b%i==0)			sum2+=i;		}		if(sum1==b&&sum2==a)		cout<<"YES"<<endl;		else		cout<<"NO"<<endl;	}	return 0;}   
                               	          	^
0_0_31908092_18284\Main.java:3: 错误: 需要class, interface或enum
using namespace std;int main(){	int n,a,b;	cin>>n;	while(n--)	{		int sum1=0,sum2=0;		cin>>a>>b;		for(int i=1;i<=a/2;++i)		{			if(a%i==0)			sum1+=i;		}		for(int i=1;i<=b/2;++i)		{			if(b%i==0)			sum2+=i;		}		if(sum1==b&&sum2==a)		cout<<"YES"<<endl;		else		cout<<"NO"<<endl;	}	return 0;}   
                               	          	       	^
0_0_31908092_18284\Main.java:3: 错误: 需要class, interface或enum
using namespace std;int main(){	int n,a,b;	cin>>n;	while(n--)	{		int sum1=0,sum2=0;		cin>>a>>b;		for(int i=1;i<=a/2;++i)		{			if(a%i==0)			sum1+=i;		}		for(int i=1;i<=b/2;++i)		{			if(b%i==0)			sum2+=i;		}		if(sum1==b&&sum2==a)		cout<<"YES"<<endl;		else		cout<<"NO"<<endl;	}	return 0;}   
                               	          	       	          	 		                  		^
0_0_31908092_18284\Main.java:3: 错误: 需要class, interface或enum
using namespace std;int main(){	int n,a,b;	cin>>n;	while(n--)	{		int sum1=0,sum2=0;		cin>>a>>b;		for(int i=1;i<=a/2;++i)		{			if(a%i==0)			sum1+=i;		}		for(int i=1;i<=b/2;++i)		{			if(b%i==0)			sum2+=i;		}		if(sum1==b&&sum2==a)		cout<<"YES"<<endl;		else		cout<<"NO"<<endl;	}	return 0;}   
                               	          	       	          	 		                  		          		^
0_0_31908092_18284\Main.java:3: 错误: 需要class, interface或enum
using namespace std;int main(){	int n,a,b;	cin>>n;	while(n--)	{		int sum1=0,sum2=0;		cin>>a>>b;		for(int i=1;i<=a/2;++i)		{			if(a%i==0)			sum1+=i;		}		for(int i=1;i<=b/2;++i)		{			if(b%i==0)			sum2+=i;		}		if(sum1==b&&sum2==a)		cout<<"YES"<<endl;		else		cout<<"NO"<<endl;	}	return 0;}   
                               	          	       	          	 		                  		          		            ^
0_0_31908092_18284\Main.java:3: 错误: 需要class, interface或enum
using namespace std;int main(){	int n,a,b;	cin>>n;	while(n--)	{		int sum1=0,sum2=0;		cin>>a>>b;		for(int i=1;i<=a/2;++i)		{			if(a%i==0)			sum1+=i;		}		for(int i=1;i<=b/2;++i)		{			if(b%i==0)			sum2+=i;		}		if(sum1==b&&sum2==a)		cout<<"YES"<<endl;		else		cout<<"NO"<<endl;	}	return 0;}   
                               	          	       	          	 		                  		          		                   ^
0_0_31908092_18284\Main.java:3: 错误: 需要class, interface或enum
using namespace std;int main(){	int n,a,b;	cin>>n;	while(n--)	{		int sum1=0,sum2=0;		cin>>a>>b;		for(int i=1;i<=a/2;++i)		{			if(a%i==0)			sum1+=i;		}		for(int i=1;i<=b/2;++i)		{			if(b%i==0)			sum2+=i;		}		if(sum1==b&&sum2==a)		cout<<"YES"<<endl;		else		cout<<"NO"<<endl;	}	return 0;}   
                               	          	       	          	 		                  		          		                       		 			          			        		^
0_0_31908092_18284\Main.java:3: 错误: 需要class, interface或enum
using namespace std;int main(){	int n,a,b;	cin>>n;	while(n--)	{		int sum1=0,sum2=0;		cin>>a>>b;		for(int i=1;i<=a/2;++i)		{			if(a%i==0)			sum1+=i;		}		for(int i=1;i<=b/2;++i)		{			if(b%i==0)			sum2+=i;		}		if(sum1==b&&sum2==a)		cout<<"YES"<<endl;		else		cout<<"NO"<<endl;	}	return 0;}   
                               	          	       	          	 		                  		          		                       		 			          			        		 		            ^
0_0_31908092_18284\Main.java:3: 错误: 需要class, interface或enum
using namespace std;int main(){	int n,a,b;	cin>>n;	while(n--)	{		int sum1=0,sum2=0;		cin>>a>>b;		for(int i=1;i<=a/2;++i)		{			if(a%i==0)			sum1+=i;		}		for(int i=1;i<=b/2;++i)		{			if(b%i==0)			sum2+=i;		}		if(sum1==b&&sum2==a)		cout<<"YES"<<endl;		else		cout<<"NO"<<endl;	}	return 0;}   
                               	          	       	          	 		                  		          		                       		 			          			        		 		                   ^
0_0_31908092_18284\Main.java:3: 错误: 需要class, interface或enum
using namespace std;int main(){	int n,a,b;	cin>>n;	while(n--)	{		int sum1=0,sum2=0;		cin>>a>>b;		for(int i=1;i<=a/2;++i)		{			if(a%i==0)			sum1+=i;		}		for(int i=1;i<=b/2;++i)		{			if(b%i==0)			sum2+=i;		}		if(sum1==b&&sum2==a)		cout<<"YES"<<endl;		else		cout<<"NO"<<endl;	}	return 0;}   
                               	          	       	          	 		                  		          		                       		 			          			        		 		                       		 			          			        		^
0_0_31908092_18284\Main.java:3: 错误: 需要class, interface或enum
using namespace std;int main(){	int n,a,b;	cin>>n;	while(n--)	{		int sum1=0,sum2=0;		cin>>a>>b;		for(int i=1;i<=a/2;++i)		{			if(a%i==0)			sum1+=i;		}		for(int i=1;i<=b/2;++i)		{			if(b%i==0)			sum2+=i;		}		if(sum1==b&&sum2==a)		cout<<"YES"<<endl;		else		cout<<"NO"<<endl;	}	return 0;}   
                               	          	       	          	 		                  		          		                       		 			          			        		 		                       		 			          			        		 		                    		                  		^
0_0_31908092_18284\Main.java:3: 错误: 需要class, interface或enum
using namespace std;int main(){	int n,a,b;	cin>>n;	while(n--)	{		int sum1=0,sum2=0;		cin>>a>>b;		for(int i=1;i<=a/2;++i)		{			if(a%i==0)			sum1+=i;		}		for(int i=1;i<=b/2;++i)		{			if(b%i==0)			sum2+=i;		}		if(sum1==b&&sum2==a)		cout<<"YES"<<endl;		else		cout<<"NO"<<endl;	}	return 0;}   
                               	          	       	          	 		                  		          		                       		 			          			        		 		                       		 			          			        		 		                    		                  		    		                 	^
0_0_31908092_18284\Main.java:3: 错误: 需要class, interface或enum
using namespace std;int main(){	int n,a,b;	cin>>n;	while(n--)	{		int sum1=0,sum2=0;		cin>>a>>b;		for(int i=1;i<=a/2;++i)		{			if(a%i==0)			sum1+=i;		}		for(int i=1;i<=b/2;++i)		{			if(b%i==0)			sum2+=i;		}		if(sum1==b&&sum2==a)		cout<<"YES"<<endl;		else		cout<<"NO"<<endl;	}	return 0;}   
                               	          	       	          	 		                  		          		                       		 			          			        		 		                       		 			          			        		 		                    		                  		    		                 	 	         ^
17 个错误


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-15 16:45:23, Gzip enabled