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_28148786_22489\Main.java:1: 错误: 非法字符: '#'
#include<stdio.h> #include <iostream> using namespace std; char W[101][101]; int SUM; void Calculate(short N){ short i, j, k, l, temp; for(i = 1; i <= N; i++) for (j = 1; j <= N; j++){ temp = N; if(W[i][j] == '#')continue; SUM++;//此块为白块 for (k = j; k <= N; k++){ if(k != j){ if (W[i][k] == '#')break; SUM++; } for (l = i + 1; l <= temp; l++){ if (W[l][k] == '#') { temp = l - 1; break; } SUM++; } } } } int main(){ short N, i, j; while (scanf("%d",&N)!=EOF) { memset(W, '0', sizeof(W)); SUM = 0; for (i = 1; i <= N; i++)//行 for (j = 1; j <= N; j++)//列 cin >> W[i][j];//无需考虑清空缓存 Calculate(N); printf("%d\n", SUM); } }
^
0_0_28148786_22489\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h> #include <iostream> using namespace std; char W[101][101]; int SUM; void Calculate(short N){ short i, j, k, l, temp; for(i = 1; i <= N; i++) for (j = 1; j <= N; j++){ temp = N; if(W[i][j] == '#')continue; SUM++;//此块为白块 for (k = j; k <= N; k++){ if(k != j){ if (W[i][k] == '#')break; SUM++; } for (l = i + 1; l <= temp; l++){ if (W[l][k] == '#') { temp = l - 1; break; } SUM++; } } } } int main(){ short N, i, j; while (scanf("%d",&N)!=EOF) { memset(W, '0', sizeof(W)); SUM = 0; for (i = 1; i <= N; i++)//行 for (j = 1; j <= N; j++)//列 cin >> W[i][j];//无需考虑清空缓存 Calculate(N); printf("%d\n", SUM); } }
        ^
0_0_28148786_22489\Main.java:1: 错误: 非法字符: '#'
#include<stdio.h> #include <iostream> using namespace std; char W[101][101]; int SUM; void Calculate(short N){ short i, j, k, l, temp; for(i = 1; i <= N; i++) for (j = 1; j <= N; j++){ temp = N; if(W[i][j] == '#')continue; SUM++;//此块为白块 for (k = j; k <= N; k++){ if(k != j){ if (W[i][k] == '#')break; SUM++; } for (l = i + 1; l <= temp; l++){ if (W[l][k] == '#') { temp = l - 1; break; } SUM++; } } } } int main(){ short N, i, j; while (scanf("%d",&N)!=EOF) { memset(W, '0', sizeof(W)); SUM = 0; for (i = 1; i <= N; i++)//行 for (j = 1; j <= N; j++)//列 cin >> W[i][j];//无需考虑清空缓存 Calculate(N); printf("%d\n", SUM); } }
                  ^
0_0_28148786_22489\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h> #include <iostream> using namespace std; char W[101][101]; int SUM; void Calculate(short N){ short i, j, k, l, temp; for(i = 1; i <= N; i++) for (j = 1; j <= N; j++){ temp = N; if(W[i][j] == '#')continue; SUM++;//此块为白块 for (k = j; k <= N; k++){ if(k != j){ if (W[i][k] == '#')break; SUM++; } for (l = i + 1; l <= temp; l++){ if (W[l][k] == '#') { temp = l - 1; break; } SUM++; } } } } int main(){ short N, i, j; while (scanf("%d",&N)!=EOF) { memset(W, '0', sizeof(W)); SUM = 0; for (i = 1; i <= N; i++)//行 for (j = 1; j <= N; j++)//列 cin >> W[i][j];//无需考虑清空缓存 Calculate(N); printf("%d\n", SUM); } }
                                                           ^
0_0_28148786_22489\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h> #include <iostream> using namespace std; char W[101][101]; int SUM; void Calculate(short N){ short i, j, k, l, temp; for(i = 1; i <= N; i++) for (j = 1; j <= N; j++){ temp = N; if(W[i][j] == '#')continue; SUM++;//此块为白块 for (k = j; k <= N; k++){ if(k != j){ if (W[i][k] == '#')break; SUM++; } for (l = i + 1; l <= temp; l++){ if (W[l][k] == '#') { temp = l - 1; break; } SUM++; } } } } int main(){ short N, i, j; while (scanf("%d",&N)!=EOF) { memset(W, '0', sizeof(W)); SUM = 0; for (i = 1; i <= N; i++)//行 for (j = 1; j <= N; j++)//列 cin >> W[i][j];//无需考虑清空缓存 Calculate(N); printf("%d\n", SUM); } }
                                                                             ^
0_0_28148786_22489\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h> #include <iostream> using namespace std; char W[101][101]; int SUM; void Calculate(short N){ short i, j, k, l, temp; for(i = 1; i <= N; i++) for (j = 1; j <= N; j++){ temp = N; if(W[i][j] == '#')continue; SUM++;//此块为白块 for (k = j; k <= N; k++){ if(k != j){ if (W[i][k] == '#')break; SUM++; } for (l = i + 1; l <= temp; l++){ if (W[l][k] == '#') { temp = l - 1; break; } SUM++; } } } } int main(){ short N, i, j; while (scanf("%d",&N)!=EOF) { memset(W, '0', sizeof(W)); SUM = 0; for (i = 1; i <= N; i++)//行 for (j = 1; j <= N; j++)//列 cin >> W[i][j];//无需考虑清空缓存 Calculate(N); printf("%d\n", SUM); } }
                                                                                      ^
0_0_28148786_22489\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h> #include <iostream> using namespace std; char W[101][101]; int SUM; void Calculate(short N){ short i, j, k, l, temp; for(i = 1; i <= N; i++) for (j = 1; j <= N; j++){ temp = N; if(W[i][j] == '#')continue; SUM++;//此块为白块 for (k = j; k <= N; k++){ if(k != j){ if (W[i][k] == '#')break; SUM++; } for (l = i + 1; l <= temp; l++){ if (W[l][k] == '#') { temp = l - 1; break; } SUM++; } } } } int main(){ short N, i, j; while (scanf("%d",&N)!=EOF) { memset(W, '0', sizeof(W)); SUM = 0; for (i = 1; i <= N; i++)//行 for (j = 1; j <= N; j++)//列 cin >> W[i][j];//无需考虑清空缓存 Calculate(N); printf("%d\n", SUM); } }
                                                                                                                                       ^
0_0_28148786_22489\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h> #include <iostream> using namespace std; char W[101][101]; int SUM; void Calculate(short N){ short i, j, k, l, temp; for(i = 1; i <= N; i++) for (j = 1; j <= N; j++){ temp = N; if(W[i][j] == '#')continue; SUM++;//此块为白块 for (k = j; k <= N; k++){ if(k != j){ if (W[i][k] == '#')break; SUM++; } for (l = i + 1; l <= temp; l++){ if (W[l][k] == '#') { temp = l - 1; break; } SUM++; } } } } int main(){ short N, i, j; while (scanf("%d",&N)!=EOF) { memset(W, '0', sizeof(W)); SUM = 0; for (i = 1; i <= N; i++)//行 for (j = 1; j <= N; j++)//列 cin >> W[i][j];//无需考虑清空缓存 Calculate(N); printf("%d\n", SUM); } }
                                                                                                                                                  ^
0_0_28148786_22489\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h> #include <iostream> using namespace std; char W[101][101]; int SUM; void Calculate(short N){ short i, j, k, l, temp; for(i = 1; i <= N; i++) for (j = 1; j <= N; j++){ temp = N; if(W[i][j] == '#')continue; SUM++;//此块为白块 for (k = j; k <= N; k++){ if(k != j){ if (W[i][k] == '#')break; SUM++; } for (l = i + 1; l <= temp; l++){ if (W[l][k] == '#') { temp = l - 1; break; } SUM++; } } } } int main(){ short N, i, j; while (scanf("%d",&N)!=EOF) { memset(W, '0', sizeof(W)); SUM = 0; for (i = 1; i <= N; i++)//行 for (j = 1; j <= N; j++)//列 cin >> W[i][j];//无需考虑清空缓存 Calculate(N); printf("%d\n", SUM); } }
                                                                                                                                                          ^
0_0_28148786_22489\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h> #include <iostream> using namespace std; char W[101][101]; int SUM; void Calculate(short N){ short i, j, k, l, temp; for(i = 1; i <= N; i++) for (j = 1; j <= N; j++){ temp = N; if(W[i][j] == '#')continue; SUM++;//此块为白块 for (k = j; k <= N; k++){ if(k != j){ if (W[i][k] == '#')break; SUM++; } for (l = i + 1; l <= temp; l++){ if (W[l][k] == '#') { temp = l - 1; break; } SUM++; } } } } int main(){ short N, i, j; while (scanf("%d",&N)!=EOF) { memset(W, '0', sizeof(W)); SUM = 0; for (i = 1; i <= N; i++)//行 for (j = 1; j <= N; j++)//列 cin >> W[i][j];//无需考虑清空缓存 Calculate(N); printf("%d\n", SUM); } }
                                                                                                                                                                           ^
0_0_28148786_22489\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h> #include <iostream> using namespace std; char W[101][101]; int SUM; void Calculate(short N){ short i, j, k, l, temp; for(i = 1; i <= N; i++) for (j = 1; j <= N; j++){ temp = N; if(W[i][j] == '#')continue; SUM++;//此块为白块 for (k = j; k <= N; k++){ if(k != j){ if (W[i][k] == '#')break; SUM++; } for (l = i + 1; l <= temp; l++){ if (W[l][k] == '#') { temp = l - 1; break; } SUM++; } } } } int main(){ short N, i, j; while (scanf("%d",&N)!=EOF) { memset(W, '0', sizeof(W)); SUM = 0; for (i = 1; i <= N; i++)//行 for (j = 1; j <= N; j++)//列 cin >> W[i][j];//无需考虑清空缓存 Calculate(N); printf("%d\n", SUM); } }
                                                                                                                                                                                   ^
0_0_28148786_22489\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h> #include <iostream> using namespace std; char W[101][101]; int SUM; void Calculate(short N){ short i, j, k, l, temp; for(i = 1; i <= N; i++) for (j = 1; j <= N; j++){ temp = N; if(W[i][j] == '#')continue; SUM++;//此块为白块 for (k = j; k <= N; k++){ if(k != j){ if (W[i][k] == '#')break; SUM++; } for (l = i + 1; l <= temp; l++){ if (W[l][k] == '#') { temp = l - 1; break; } SUM++; } } } } int main(){ short N, i, j; while (scanf("%d",&N)!=EOF) { memset(W, '0', sizeof(W)); SUM = 0; for (i = 1; i <= N; i++)//行 for (j = 1; j <= N; j++)//列 cin >> W[i][j];//无需考虑清空缓存 Calculate(N); printf("%d\n", SUM); } }
                                                                                                                                                                                                   ^
0_0_28148786_22489\Main.java:1: 错误: 需要class, interface或enum
#include<stdio.h> #include <iostream> using namespace std; char W[101][101]; int SUM; void Calculate(short N){ short i, j, k, l, temp; for(i = 1; i <= N; i++) for (j = 1; j <= N; j++){ temp = N; if(W[i][j] == '#')continue; SUM++;//此块为白块 for (k = j; k <= N; k++){ if(k != j){ if (W[i][k] == '#')break; SUM++; } for (l = i + 1; l <= temp; l++){ if (W[l][k] == '#') { temp = l - 1; break; } SUM++; } } } } int main(){ short N, i, j; while (sc


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-26 10:02:28, Gzip enabled