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_29448877_3671.cpp:1:1: error: stray '##' in program
 ##include <bits/stdc++.h>
 ^
0_0_29448877_3671.cpp:1:3: error: 'include' does not name a type
 ##include <bits/stdc++.h>
   ^
0_0_29448877_3671.cpp: In function 'void init()':
0_0_29448877_3671.cpp:18:34: error: 'memset' was not declared in this scope
     memset(head, -1, sizeof(head));
                                  ^
0_0_29448877_3671.cpp: In function 'int dfs(int)':
0_0_29448877_3671.cpp:37:38: error: 'max' was not declared in this scope
         dp[u] = max(dp[u], (LL)dfs(v));
                                      ^
0_0_29448877_3671.cpp: In function 'int main()':
0_0_29448877_3671.cpp:44:31: error: 'scanf' was not declared in this scope
     while(scanf("%d%d", &n, &m)!=EOF)
                               ^
0_0_29448877_3671.cpp:44:34: error: 'EOF' was not declared in this scope
     while(scanf("%d%d", &n, &m)!=EOF)
                                  ^
0_0_29448877_3671.cpp:56:67: error: 'max' was not declared in this scope
         for(int i=1;i<=n;i++) if(!out[i])ans = max(ans, (LL)dfs(i));
                                                                   ^
0_0_29448877_3671.cpp:57:27: error: 'printf' was not declared in this scope
         printf("%d\n", ans);
                           ^


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 07:51:55, Gzip enabled