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_39218834_26452\Main.java:1: 错误: 非法字符: '#'
#include<stdio.h>
^
0_0_39218834_26452\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h>
        ^
0_0_39218834_26452\Main.java:2: 错误: 非法字符: '#'
#define MAX 10000
^
0_0_39218834_26452\Main.java:3: 错误: 非法字符: '#'
#include<cmath>
^
0_0_39218834_26452\Main.java:6: 错误: 需要class, interface或enum
void multi(long a[], int n, long b[]){
^
0_0_39218834_26452\Main.java:8: 错误: 需要class, interface或enum
    for(i=0;i<=s;i++)
    ^
0_0_39218834_26452\Main.java:8: 错误: 需要class, interface或enum
    for(i=0;i<=s;i++)
            ^
0_0_39218834_26452\Main.java:8: 错误: 需要class, interface或enum
    for(i=0;i<=s;i++)
                 ^
0_0_39218834_26452\Main.java:11: 错误: 需要class, interface或enum
            if(i+n<=s)
            ^
0_0_39218834_26452\Main.java:13: 错误: 需要class, interface或enum
        }
        ^
0_0_39218834_26452\Main.java:18: 错误: 需要class, interface或enum
    int n, i, j, w[100], c;
    ^
0_0_39218834_26452\Main.java:19: 错误: 需要class, interface或enum
    while(scanf("%d",&n)!=EOF){
    ^
0_0_39218834_26452\Main.java:21: 错误: 需要class, interface或enum
        for(i=0;i<n;i++){
        ^
0_0_39218834_26452\Main.java:21: 错误: 需要class, interface或enum
        for(i=0;i<n;i++){
                ^
0_0_39218834_26452\Main.java:21: 错误: 需要class, interface或enum
        for(i=0;i<n;i++){
                    ^
0_0_39218834_26452\Main.java:23: 错误: 需要class, interface或enum
            s+=w[i];
            ^
0_0_39218834_26452\Main.java:24: 错误: 需要class, interface或enum
        }
        ^
0_0_39218834_26452\Main.java:25: 错误: 需要class, interface或enum
        for(i=1;i<=s;i++)
                ^
0_0_39218834_26452\Main.java:25: 错误: 需要class, interface或enum
        for(i=1;i<=s;i++)
                     ^
0_0_39218834_26452\Main.java:27: 错误: 需要class, interface或enum
        b[0]=1;
        ^
0_0_39218834_26452\Main.java:28: 错误: 需要class, interface或enum
        for(i=0;i<n;i++){
        ^
0_0_39218834_26452\Main.java:28: 错误: 需要class, interface或enum
        for(i=0;i<n;i++){
                ^
0_0_39218834_26452\Main.java:28: 错误: 需要class, interface或enum
        for(i=0;i<n;i++){
                    ^
0_0_39218834_26452\Main.java:29: 错误: 需要class, interface或enum
            for(j=0;j<=s;j++)
                    ^
0_0_39218834_26452\Main.java:29: 错误: 需要class, interface或enum
            for(j=0;j<=s;j++)
                         ^
0_0_39218834_26452\Main.java:32: 错误: 需要class, interface或enum
            multi(a,w[i],b);
            ^
0_0_39218834_26452\Main.java:33: 错误: 需要class, interface或enum
        }
        ^
0_0_39218834_26452\Main.java:36: 错误: 需要class, interface或enum
        for(i=1;i<=s;i++)
        ^
0_0_39218834_26452\Main.java:36: 错误: 需要class, interface或enum
        for(i=1;i<=s;i++)
                ^
0_0_39218834_26452\Main.java:36: 错误: 需要class, interface或enum
        for(i=1;i<=s;i++)
                     ^
0_0_39218834_26452\Main.java:39: 错误: 需要class, interface或enum
        printf("%d\n",c);
        ^
0_0_39218834_26452\Main.java:40: 错误: 需要class, interface或enum
        if(c!=0){
        ^
0_0_39218834_26452\Main.java:42: 错误: 需要class, interface或enum
            while(c--){
            ^
0_0_39218834_26452\Main.java:44: 错误: 需要class, interface或enum
                printf("%d ",i);
                ^
0_0_39218834_26452\Main.java:45: 错误: 需要class, interface或enum
                i++;
                ^
0_0_39218834_26452\Main.java:46: 错误: 需要class, interface或enum
            }
            ^
0_0_39218834_26452\Main.java:48: 错误: 需要class, interface或enum
        }
        ^
37 个错误


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-11 18:07:33, Gzip enabled