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_31904807_8773\Main.java:1: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_31904807_8773\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h>
        ^
0_0_31904807_8773\Main.java:2: 错误: 非法字符: '#'
#include<string.h>
^
0_0_31904807_8773\Main.java:3: 错误: 非法字符: '#'
#include<stdlib.h>
^
0_0_31904807_8773\Main.java:6: 错误: 需要class, interface或enum
	int ans, sum, len, base, t, T, upper;
	^
0_0_31904807_8773\Main.java:7: 错误: 需要class, interface或enum
	char type_1[100], type_2[100], var_name[100], num[10000];
	^
0_0_31904807_8773\Main.java:8: 错误: 需要class, interface或enum
	scanf("%d", &T);
	^
0_0_31904807_8773\Main.java:9: 错误: 需要class, interface或enum
	for (int j = 0; j < T; j++) {
	^
0_0_31904807_8773\Main.java:9: 错误: 需要class, interface或enum
	for (int j = 0; j < T; j++) {
	                ^
0_0_31904807_8773\Main.java:9: 错误: 需要class, interface或enum
	for (int j = 0; j < T; j++) {
	                       ^
0_0_31904807_8773\Main.java:12: 错误: 需要class, interface或enum
		memset(type_2, 0, sizeof(type_2));
		^
0_0_31904807_8773\Main.java:13: 错误: 需要class, interface或enum
		memset(var_name, 0, sizeof(var_name));
		^
0_0_31904807_8773\Main.java:14: 错误: 需要class, interface或enum
		sum = ans = len = base = 0;
		^
0_0_31904807_8773\Main.java:17: 错误: 需要class, interface或enum
		scanf("%d", &t);
		^
0_0_31904807_8773\Main.java:18: 错误: 需要class, interface或enum
		while (t--) {
		^
0_0_31904807_8773\Main.java:20: 错误: 需要class, interface或enum
			scanf("%s", type_1);
			^
0_0_31904807_8773\Main.java:21: 错误: 需要class, interface或enum
			if (!strcmp(type_1, "long"))//有long,继续输入long后的类型名,并赋值对应类型大小
			^
0_0_31904807_8773\Main.java:24: 错误: 需要class, interface或enum
				if (type_2[0] == 'd') ans = 16;
				^
0_0_31904807_8773\Main.java:25: 错误: 需要class, interface或enum
				else if (type_2[0] == 'l')ans = 8;
				^
0_0_31904807_8773\Main.java:26: 错误: 需要class, interface或enum
			}
			^
0_0_31904807_8773\Main.java:30: 错误: 需要class, interface或enum
				if (type_1[0] == 'c' || type_1[0] == 'b') ans = 1;
				^
0_0_31904807_8773\Main.java:31: 错误: 需要class, interface或enum
				else if (type_1[0] == 'f' || type_1[0] == 'i') ans = 4;
				^
0_0_31904807_8773\Main.java:32: 错误: 需要class, interface或enum
				else if (type_1[0] == 'd') ans = 8;
				^
0_0_31904807_8773\Main.java:33: 错误: 需要class, interface或enum
				else if (type_1[0] == '_') ans = 16;
				^
0_0_31904807_8773\Main.java:34: 错误: 需要class, interface或enum
			}
			^
0_0_31904807_8773\Main.java:37: 错误: 需要class, interface或enum
			base = 1;//默认变量个数为1
			^
0_0_31904807_8773\Main.java:39: 错误: 需要class, interface或enum
			for (int i = 0; i <= len; i++)//取出中括号之间的数字作为变量个数
			^
0_0_31904807_8773\Main.java:39: 错误: 需要class, interface或enum
			for (int i = 0; i <= len; i++)//取出中括号之间的数字作为变量个数
			                ^
0_0_31904807_8773\Main.java:39: 错误: 需要class, interface或enum
			for (int i = 0; i <= len; i++)//取出中括号之间的数字作为变量个数
			                          ^
0_0_31904807_8773\Main.java:42: 错误: 需要class, interface或enum
					for (int k = 0; var_name[i] != ']'; i++, k++)
					^
0_0_31904807_8773\Main.java:42: 错误: 需要class, interface或enum
					for (int k = 0; var_name[i] != ']'; i++, k++)
					                ^
0_0_31904807_8773\Main.java:42: 错误: 需要class, interface或enum
					for (int k = 0; var_name[i] != ']'; i++, k++)
					                                    ^
0_0_31904807_8773\Main.java:44: 错误: 需要class, interface或enum
					base = atoi(num);
					^
0_0_31904807_8773\Main.java:45: 错误: 需要class, interface或enum
					break;
					^
0_0_31904807_8773\Main.java:46: 错误: 需要class, interface或enum
				}
				^
0_0_31904807_8773\Main.java:48: 错误: 需要class, interface或enum
		}
		^
0_0_31904807_8773\Main.java:53: 错误: 需要class, interface或enum
		printf("Case #%d: %d", j + 1, upper);
		^
0_0_31904807_8773\Main.java:54: 错误: 需要class, interface或enum
		if (j != T - 1)//最后一行无换行
		^
0_0_31904807_8773\Main.java:56: 错误: 需要class, interface或enum
	}
	^
0_0_31904807_8773\Main.java:58: 错误: 需要class, interface或enum
}
^
40 个错误


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-23 06:40:24, Gzip enabled