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_29479063_21704\Main.java:1: 错误: 非法字符: '#'
#include<algorithm>
^
0_0_29479063_21704\Main.java:1: 错误: 需要class, interface或enum
#include<algorithm>
        ^
0_0_29479063_21704\Main.java:2: 错误: 非法字符: '#'
#include<iostream>
^
0_0_29479063_21704\Main.java:3: 错误: 非法字符: '#'
#include<cstring>
^
0_0_29479063_21704\Main.java:4: 错误: 非法字符: '#'
#include<cstdio>
^
0_0_29479063_21704\Main.java:5: 错误: 非法字符: '#'
#include<cmath>
^
0_0_29479063_21704\Main.java:7: 错误: 非法字符: '#'
#define LL long long
^
0_0_29479063_21704\Main.java:8: 错误: 非法字符: '#'
#define CLR(a, b) memset(a, b, sizeof(a))
^
0_0_29479063_21704\Main.java:9: 错误: 非法字符: '#'
#define SL(a) strlen(a)
^
0_0_29479063_21704\Main.java:12: 错误: 需要class, interface或enum
const int N = 111;
^
0_0_29479063_21704\Main.java:13: 错误: 需要class, interface或enum
const int M = 11111;
^
0_0_29479063_21704\Main.java:15: 错误: 需要class, interface或enum
int dp[N][M];
^
0_0_29479063_21704\Main.java:16: 错误: 需要class, interface或enum
int welc[N][M];
^
0_0_29479063_21704\Main.java:17: 错误: 需要class, interface或enum
int tim[N][M], max_val[M];//用来模拟单调队列。
^
0_0_29479063_21704\Main.java:18: 错误: 需要class, interface或enum
int add[M];
^
0_0_29479063_21704\Main.java:32: 错误: 需要class, interface或enum
int main()
^
0_0_29479063_21704\Main.java:37: 错误: 需要class, interface或enum
    while(scanf("%d%d%d", &n, &m, &k), n + m + k)
    ^
0_0_29479063_21704\Main.java:39: 错误: 需要class, interface或enum
        CLR(welc, 0);CLR(tim, 0);
                     ^
0_0_29479063_21704\Main.java:40: 错误: 需要class, interface或enum
        for(i = 0; i <= n; i ++)
        ^
0_0_29479063_21704\Main.java:40: 错误: 需要class, interface或enum
        for(i = 0; i <= n; i ++)
                   ^
0_0_29479063_21704\Main.java:40: 错误: 需要class, interface或enum
        for(i = 0; i <= n; i ++)
                           ^
0_0_29479063_21704\Main.java:42: 错误: 需要class, interface或enum
            for(j = 1; j <= m; j ++)
                       ^
0_0_29479063_21704\Main.java:42: 错误: 需要class, interface或enum
            for(j = 1; j <= m; j ++)
                               ^
0_0_29479063_21704\Main.java:45: 错误: 需要class, interface或enum
            }
            ^
0_0_29479063_21704\Main.java:47: 错误: 需要class, interface或enum
        for(i = 0; i <= n; i ++)
                   ^
0_0_29479063_21704\Main.java:47: 错误: 需要class, interface或enum
        for(i = 0; i <= n; i ++)
                           ^
0_0_29479063_21704\Main.java:50: 错误: 需要class, interface或enum
            for(j = 1; j <= m; j ++)
            ^
0_0_29479063_21704\Main.java:50: 错误: 需要class, interface或enum
            for(j = 1; j <= m; j ++)
                       ^
0_0_29479063_21704\Main.java:50: 错误: 需要class, interface或enum
            for(j = 1; j <= m; j ++)
                               ^
0_0_29479063_21704\Main.java:53: 错误: 需要class, interface或enum
                tim[i][j] += tim[i][j - 1];
                ^
0_0_29479063_21704\Main.java:54: 错误: 需要class, interface或enum
            }
            ^
0_0_29479063_21704\Main.java:57: 错误: 需要class, interface或enum
        for(i = 0; i <= n; i ++)
        ^
0_0_29479063_21704\Main.java:57: 错误: 需要class, interface或enum
        for(i = 0; i <= n; i ++)
                   ^
0_0_29479063_21704\Main.java:57: 错误: 需要class, interface或enum
        for(i = 0; i <= n; i ++)
                           ^
0_0_29479063_21704\Main.java:60: 错误: 需要class, interface或enum
            tail = -1;
            ^
0_0_29479063_21704\Main.java:61: 错误: 需要class, interface或enum
            r = 0;
            ^
0_0_29479063_21704\Main.java:62: 错误: 需要class, interface或enum
            while(r <= m)
            ^
0_0_29479063_21704\Main.java:68: 错误: 需要class, interface或enum
                    max_val[++ tail] = dp[i][r] - add[r];
                    ^
0_0_29479063_21704\Main.java:69: 错误: 需要class, interface或enum
                    dp[i + 1][r] = max_val[head] + add[r];
                    ^
0_0_29479063_21704\Main.java:70: 错误: 需要class, interface或enum
                    add[r + 1] = add[r] + welc[i][r + 1];
                    ^
0_0_29479063_21704\Main.java:71: 错误: 需要class, interface或enum
                    r ++;
                    ^
0_0_29479063_21704\Main.java:72: 错误: 需要class, interface或enum
                }
                ^
0_0_29479063_21704\Main.java:74: 错误: 需要class, interface或enum
                while(tim[i][r] - tim[i][l] > k && l <= r)
                ^
0_0_29479063_21704\Main.java:77: 错误: 需要class, interface或enum
                    l ++;
                    ^
0_0_29479063_21704\Main.java:78: 错误: 需要class, interface或enum
                }
                ^
0_0_29479063_21704\Main.java:81: 错误: 需要class, interface或enum
            tail = -1;head = 0;
            ^
0_0_29479063_21704\Main.java:81: 错误: 需要class, interface或enum
            tail = -1;head = 0;
                      ^
0_0_29479063_21704\Main.java:82: 错误: 需要class, interface或enum
            l = r = m;
            ^
0_0_29479063_21704\Main.java:83: 错误: 需要class, interface或enum
            while(l >= 0)
            ^
0_0_29479063_21704\Main.java:89: 错误: 需要class, interface或enum
                    max_val[++ tail] = dp[i][l] - add[l];
                    ^
0_0_29479063_21704\Main.java:90: 错误: 需要class, interface或enum
                    dp[i + 1][l] = max(dp[i + 1][l], max_val[head] + add[l]);
                    ^
0_0_29479063_21704\Main.java:91: 错误: 需要class, interface或enum
                    if(l)add[l - 1] = add[l] + welc[i][l];
                    ^
0_0_29479063_21704\Main.java:92: 错误: 需要class, interface或enum
                    l --;
                    ^
0_0_29479063_21704\Main.java:93: 错误: 需要class, interface或enum
                }
                ^
0_0_29479063_21704\Main.java:95: 错误: 需要class, interface或enum
                while(tim[i][r] - tim[i][l] > k && l <= r)
                ^
0_0_29479063_21704\Main.java:98: 错误: 需要class, interface或enum
                    r --;
                    ^
0_0_29479063_21704\Main.java:99: 错误: 需要class, interface或enum
                }
                ^
0_0_29479063_21704\Main.java:103: 错误: 需要class, interface或enum
        for(i = 0; i <= m; i ++) ans = max(ans, dp[n + 1][i]);
        ^
0_0_29479063_21704\Main.java:103: 错误: 需要class, interface或enum
        for(i = 0; i <= m; i ++) ans = max(ans, dp[n + 1][i]);
                   ^
0_0_29479063_21704\Main.java:103: 错误: 需要class, interface或enum
        for(i = 0; i <= m; i ++) ans = max(ans, dp[n + 1][i]);
                           ^
0_0_29479063_21704\Main.java:104: 错误: 需要class, interface或enum
        printf("%d\n", ans);
        ^
0_0_29479063_21704\Main.java:105: 错误: 需要class, interface或enum
    }
    ^
62 个错误


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-23 04:36:19, Gzip enabled