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_38112754_16747\Main.java:1: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_38112754_16747\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h>
        ^
0_0_38112754_16747\Main.java:2: 错误: 非法字符: '#'
#include<string.h>
^
0_0_38112754_16747\Main.java:7: 错误: 需要class, interface或enum
 while(scanf("%d",&n)!=EOF && n!=0 ){
 ^
0_0_38112754_16747\Main.java:9: 错误: 需要class, interface或enum
  char color[1005][20];
  ^
0_0_38112754_16747\Main.java:10: 错误: 需要class, interface或enum
  int number[1005]={0},j,count=0; //这里的count是用来记录字符串个数的(不一样的字符串个数); 
  ^
0_0_38112754_16747\Main.java:11: 错误: 需要class, interface或enum
  memset(str,0,sizeof(str));
  ^
0_0_38112754_16747\Main.java:12: 错误: 需要class, interface或enum
  memset(color,0,sizeof(color));
  ^
0_0_38112754_16747\Main.java:13: 错误: 需要class, interface或enum
  memset(number,0,sizeof(number));
  ^
0_0_38112754_16747\Main.java:15: 错误: 需要class, interface或enum
  for(int i=0; i<n; i++){
  ^
0_0_38112754_16747\Main.java:15: 错误: 需要class, interface或enum
  for(int i=0; i<n; i++){
               ^
0_0_38112754_16747\Main.java:15: 错误: 需要class, interface或enum
  for(int i=0; i<n; i++){
                    ^
0_0_38112754_16747\Main.java:17: 错误: 需要class, interface或enum
   scanf("%s",str);
   ^
0_0_38112754_16747\Main.java:18: 错误: 需要class, interface或enum
   for(j=0; j<i+1; j++){
   ^
0_0_38112754_16747\Main.java:18: 错误: 需要class, interface或enum
   for(j=0; j<i+1; j++){
            ^
0_0_38112754_16747\Main.java:18: 错误: 需要class, interface或enum
   for(j=0; j<i+1; j++){
                   ^
0_0_38112754_16747\Main.java:21: 错误: 需要class, interface或enum
     number[j]++;
     ^
0_0_38112754_16747\Main.java:22: 错误: 需要class, interface或enum
     break; 
     ^
0_0_38112754_16747\Main.java:23: 错误: 需要class, interface或enum
    }//看看新输入的这个字符串在字符串数组是否已经存在,存在相应的整形数组+1并且flag做好标志转换。 
    ^
0_0_38112754_16747\Main.java:26: 错误: 需要class, interface或enum
   if(flag == 1){
   ^
0_0_38112754_16747\Main.java:28: 错误: 需要class, interface或enum
    number[j]++;
    ^
0_0_38112754_16747\Main.java:29: 错误: 需要class, interface或enum
    count++;
    ^
0_0_38112754_16747\Main.java:30: 错误: 需要class, interface或enum
   }//不存在就存进字符串数组;此时count才+1进行记录; 
   ^
0_0_38112754_16747\Main.java:33: 错误: 需要class, interface或enum
  for(int i=0; i<count; i++){//这里count能减少循环次数,也可以换成输入的数据个数n; 
  ^
0_0_38112754_16747\Main.java:33: 错误: 需要class, interface或enum
  for(int i=0; i<count; i++){//这里count能减少循环次数,也可以换成输入的数据个数n; 
               ^
0_0_38112754_16747\Main.java:33: 错误: 需要class, interface或enum
  for(int i=0; i<count; i++){//这里count能减少循环次数,也可以换成输入的数据个数n; 
                        ^
0_0_38112754_16747\Main.java:36: 错误: 需要class, interface或enum
    t = number[i];//t记录下表对应的内容; 
    ^
0_0_38112754_16747\Main.java:37: 错误: 需要class, interface或enum
   }
   ^
0_0_38112754_16747\Main.java:42: 错误: 需要class, interface或enum
   }
   ^
0_0_38112754_16747\Main.java:45: 错误: 需要class, interface或enum
 }
 ^
0_0_38112754_16747\Main.java:48: 错误: 需要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-05 05:42:40, Gzip enabled