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_39588826_30838\Main.java:4: 错误: 非法字符: '#'
#include <stdio.h>
^
0_0_39588826_30838\Main.java:4: 错误: 需要class, interface或enum
#include <stdio.h>
         ^
0_0_39588826_30838\Main.java:5: 错误: 非法字符: '#'
#include <stdlib.h>
^
0_0_39588826_30838\Main.java:6: 错误: 非法字符: '#'
#include <string.h>
^
0_0_39588826_30838\Main.java:10: 错误: 需要class, interface或enum
    *a = *b;
    ^
0_0_39588826_30838\Main.java:11: 错误: 需要class, interface或enum
    *b = temp;
    ^
0_0_39588826_30838\Main.java:12: 错误: 需要class, interface或enum
}
^
0_0_39588826_30838\Main.java:15: 错误: 需要class, interface或enum
    for (int i = 0; i < n - 1; i++) {
                    ^
0_0_39588826_30838\Main.java:15: 错误: 需要class, interface或enum
    for (int i = 0; i < n - 1; i++) {
                               ^
0_0_39588826_30838\Main.java:16: 错误: 需要class, interface或enum
        for (int j = 0; j < n - 1 - i; j++) {
                        ^
0_0_39588826_30838\Main.java:16: 错误: 需要class, interface或enum
        for (int j = 0; j < n - 1 - i; j++) {
                                       ^
0_0_39588826_30838\Main.java:19: 错误: 需要class, interface或enum
            }
            ^
0_0_39588826_30838\Main.java:26: 错误: 需要class, interface或enum
    while (scanf("%s", str) != EOF) {
    ^
0_0_39588826_30838\Main.java:28: 错误: 需要class, interface或enum
        int count = 0;
        ^
0_0_39588826_30838\Main.java:29: 错误: 需要class, interface或enum
        for (int i = 0; i < len; i++) {
        ^
0_0_39588826_30838\Main.java:29: 错误: 需要class, interface或enum
        for (int i = 0; i < len; i++) {
                        ^
0_0_39588826_30838\Main.java:29: 错误: 需要class, interface或enum
        for (int i = 0; i < len; i++) {
                                 ^
0_0_39588826_30838\Main.java:32: 错误: 需要class, interface或enum
                count++;
                ^
0_0_39588826_30838\Main.java:33: 错误: 需要class, interface或enum
            }
            ^
0_0_39588826_30838\Main.java:37: 错误: 需要class, interface或enum
        char *token = strtok(str, " ");
        ^
0_0_39588826_30838\Main.java:38: 错误: 需要class, interface或enum
        int nums[1001], index = 0;
        ^
0_0_39588826_30838\Main.java:39: 错误: 需要class, interface或enum
        while (token != NULL) {
        ^
0_0_39588826_30838\Main.java:41: 错误: 需要class, interface或enum
            token = strtok(NULL, " ");
            ^
0_0_39588826_30838\Main.java:42: 错误: 需要class, interface或enum
        }
        ^
0_0_39588826_30838\Main.java:46: 错误: 需要class, interface或enum
        for (int i = 0; i < index - 1; i++) {
        ^
0_0_39588826_30838\Main.java:46: 错误: 需要class, interface或enum
        for (int i = 0; i < index - 1; i++) {
                        ^
0_0_39588826_30838\Main.java:46: 错误: 需要class, interface或enum
        for (int i = 0; i < index - 1; i++) {
                                       ^
0_0_39588826_30838\Main.java:48: 错误: 需要class, interface或enum
        }
        ^
0_0_39588826_30838\Main.java:50: 错误: 需要class, interface或enum
    }
    ^
0_0_39588826_30838\Main.java:52: 错误: 需要class, interface或enum
}
^
30 个错误


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-25 16:05:18, Gzip enabled