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_37070722_12481.cpp:1:2: error: stray '#' in program
 h#include<bits/stdc++.h>
  ^
0_0_37070722_12481.cpp:1:1: error: 'h' does not name a type
 h#include<bits/stdc++.h>
 ^
0_0_37070722_12481.cpp: In function 'int lca(int, int)':
0_0_37070722_12481.cpp:26:25: error: 'printf' was not declared in this scope
  printf("lca%d %d\n",x,y);
                         ^
0_0_37070722_12481.cpp:27:24: error: 'swap' was not declared in this scope
  if(h[x]<h[y]) swap(x,y);
                        ^
0_0_37070722_12481.cpp: In function 'int main()':
0_0_37070722_12481.cpp:36:26: error: 'scanf' was not declared in this scope
  while(scanf("%d%d",&n,&k)!=EOF)
                          ^
0_0_37070722_12481.cpp:36:29: error: 'EOF' was not declared in this scope
  while(scanf("%d%d",&n,&k)!=EOF)
                             ^
0_0_37070722_12481.cpp:41:26: error: 'memset' was not declared in this scope
   memset(f,0x3f,sizeof(f));
                          ^
0_0_37070722_12481.cpp:46:46: error: 'min' was not declared in this scope
     f[i][j]=min(f[i-1][j],f[i-1][j-1]+h[a[i]]);
                                              ^
0_0_37070722_12481.cpp:49:24: error: 'printf' was not declared in this scope
   printf("%d\n",f[n][k]);
                        ^


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:58:16, Gzip enabled