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_15234645_2210\Main.java:1: 错误: 非法字符: '#'
#include <cstdio>
^
0_0_15234645_2210\Main.java:1: 错误: 需要class, interface或enum
#include <cstdio>
         ^
0_0_15234645_2210\Main.java:2: 错误: 非法字符: '#'
#include <cstring>
^
0_0_15234645_2210\Main.java:3: 错误: 非法字符: '#'
#include <iostream>
^
0_0_15234645_2210\Main.java:6: 错误: 需要class, interface或enum
const int N = 330;
^
0_0_15234645_2210\Main.java:8: 错误: 需要class, interface或enum
bool flag;
^
0_0_15234645_2210\Main.java:9: 错误: 需要class, interface或enum
int n, c[N], d[N];
^
0_0_15234645_2210\Main.java:10: 错误: 需要class, interface或enum
char g[N][N];
^
0_0_15234645_2210\Main.java:12: 错误: 需要class, interface或enum
void dfs(int i) {
^
0_0_15234645_2210\Main.java:14: 错误: 需要class, interface或enum
    for (int j = 0; j < n; j++) if (g[i][j] == '1') {
    ^
0_0_15234645_2210\Main.java:14: 错误: 需要class, interface或enum
    for (int j = 0; j < n; j++) if (g[i][j] == '1') {
                    ^
0_0_15234645_2210\Main.java:14: 错误: 需要class, interface或enum
    for (int j = 0; j < n; j++) if (g[i][j] == '1') {
                           ^
0_0_15234645_2210\Main.java:17: 错误: 需要class, interface或enum
            dfs(j);
            ^
0_0_15234645_2210\Main.java:18: 错误: 需要class, interface或enum
        }
        ^
0_0_15234645_2210\Main.java:19: 错误: 需要class, interface或enum
        else if (c[j] == c[i]) { flag = false; break; }
                                               ^
0_0_15234645_2210\Main.java:19: 错误: 需要class, interface或enum
        else if (c[j] == c[i]) { flag = false; break; }
                                                      ^
0_0_15234645_2210\Main.java:26: 错误: 需要class, interface或enum
    scanf("%d", &T);
    ^
0_0_15234645_2210\Main.java:27: 错误: 需要class, interface或enum
    while (T--) {
    ^
0_0_15234645_2210\Main.java:29: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) scanf("%s", g[i]);
        ^
0_0_15234645_2210\Main.java:29: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) scanf("%s", g[i]);
                        ^
0_0_15234645_2210\Main.java:29: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) scanf("%s", g[i]);
                               ^
0_0_15234645_2210\Main.java:31: 错误: 需要class, interface或enum
        flag = true;
        ^
0_0_15234645_2210\Main.java:32: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) c[i] = -1;
        ^
0_0_15234645_2210\Main.java:32: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) c[i] = -1;
                        ^
0_0_15234645_2210\Main.java:32: 错误: 需要class, interface或enum
        for (int i = 0; i < n; i++) c[i] = -1;
                               ^
0_0_15234645_2210\Main.java:33: 错误: 需要class, interface或enum
        for (int i = 0; i < n && flag; i++) if (c[i] == -1) {
        ^
0_0_15234645_2210\Main.java:33: 错误: 需要class, interface或enum
        for (int i = 0; i < n && flag; i++) if (c[i] == -1) {
                        ^
0_0_15234645_2210\Main.java:33: 错误: 需要class, interface或enum
        for (int i = 0; i < n && flag; i++) if (c[i] == -1) {
                                       ^
0_0_15234645_2210\Main.java:35: 错误: 需要class, interface或enum
            dfs(i);
            ^
0_0_15234645_2210\Main.java:36: 错误: 需要class, interface或enum
        }
        ^
0_0_15234645_2210\Main.java:39: 错误: 需要class, interface或enum
        else {
        ^
0_0_15234645_2210\Main.java:40: 错误: 需要class, interface或enum
            for (int i = 0; i < n; i++) if (c[i] == 1) {
                            ^
0_0_15234645_2210\Main.java:40: 错误: 需要class, interface或enum
            for (int i = 0; i < n; i++) if (c[i] == 1) {
                                   ^
0_0_15234645_2210\Main.java:42: 错误: 需要class, interface或enum
                for (int j = 0; j < n; j++) if (g[i][j] == '1' && c[j] == 0) d[i]++;
                ^
0_0_15234645_2210\Main.java:42: 错误: 需要class, interface或enum
                for (int j = 0; j < n; j++) if (g[i][j] == '1' && c[j] == 0) d[i]++;
                                ^
0_0_15234645_2210\Main.java:42: 错误: 需要class, interface或enum
                for (int j = 0; j < n; j++) if (g[i][j] == '1' && c[j] == 0) d[i]++;
                                       ^
0_0_15234645_2210\Main.java:43: 错误: 需要class, interface或enum
            }
            ^
0_0_15234645_2210\Main.java:44: 错误: 需要class, interface或enum
            for (int i = 0; i < n && flag; i++) if (c[i] == 1 && d[i] > 0) {
                            ^
0_0_15234645_2210\Main.java:44: 错误: 需要class, interface或enum
            for (int i = 0; i < n && flag; i++) if (c[i] == 1 && d[i] > 0) {
                                           ^
0_0_15234645_2210\Main.java:45: 错误: 需要class, interface或enum
                for (int j = i + 1 ; j < n && flag; j++) if ( c[j] == 1 && d[j] > 0) {
                                     ^
0_0_15234645_2210\Main.java:45: 错误: 需要class, interface或enum
                for (int j = i + 1 ; j < n && flag; j++) if ( c[j] == 1 && d[j] > 0) {
                                                    ^
0_0_15234645_2210\Main.java:47: 错误: 需要class, interface或enum
                    for (int k = 0; k < n; k++) if (c[k] == 0 && g[i][k] == '1' && g[j][k] == '1') tmp++;
                    ^
0_0_15234645_2210\Main.java:47: 错误: 需要class, interface或enum
                    for (int k = 0; k < n; k++) if (c[k] == 0 && g[i][k] == '1' && g[j][k] == '1') tmp++;
                                    ^
0_0_15234645_2210\Main.java:47: 错误: 需要class, interface或enum
                    for (int k = 0; k < n; k++) if (c[k] == 0 && g[i][k] == '1' && g[j][k] == '1') tmp++;
                                           ^
0_0_15234645_2210\Main.java:48: 错误: 需要class, interface或enum
                    if (d[i] - tmp > 0 && d[j] - tmp > 0) flag = false;
                    ^
0_0_15234645_2210\Main.java:49: 错误: 需要class, interface或enum
                }
                ^
0_0_15234645_2210\Main.java:52: 错误: 需要class, interface或enum
            else puts("No");
            ^
0_0_15234645_2210\Main.java:53: 错误: 需要class, interface或enum
        }
        ^
0_0_15234645_2210\Main.java:56: 错误: 需要class, interface或enum
}
^
49 个错误


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-10-31 17:24:01, Gzip enabled