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_13494817_15359.cpp:1:1: error: 'include' does not name a type
 include<stdio.h>
 ^
0_0_13494817_15359.cpp: In function 'int main()':
0_0_13494817_15359.cpp:6:22: error: 'n' was not declared in this scope
     scanf("%ld %ld",&n,&m);
                      ^
0_0_13494817_15359.cpp:6:25: error: 'm' was not declared in this scope
     scanf("%ld %ld",&n,&m);
                         ^
0_0_13494817_15359.cpp:6:26: error: 'scanf' was not declared in this scope
     scanf("%ld %ld",&n,&m);
                          ^
0_0_13494817_15359.cpp:7:9: error: 'i' was not declared in this scope
     for(i=0;i<n;i++)
         ^
0_0_13494817_15359.cpp:8:22: error: 'a' was not declared in this scope
         scanf("%ld",&a[i]);
                      ^
0_0_13494817_15359.cpp:9:9: error: 'i' was not declared in this scope
     for(i=0;i<n-1;i++)
         ^
0_0_13494817_15359.cpp:10:13: error: 'j' was not declared in this scope
         for(j=i;j<n-1;j++)
             ^
0_0_13494817_15359.cpp:12:16: error: 'a' was not declared in this scope
             if(a[i]<a[j+1])
                ^
0_0_13494817_15359.cpp:14:17: error: 's' was not declared in this scope
                 s=a[i];
                 ^
0_0_13494817_15359.cpp:19:9: error: 'i' was not declared in this scope
     for(i=0;i<m;i++)
         ^
0_0_13494817_15359.cpp:22:26: error: 'a' was not declared in this scope
             printf("%ld",a[i]);
                          ^
0_0_13494817_15359.cpp:22:30: error: 'printf' was not declared in this scope
             printf("%ld",a[i]);
                              ^
0_0_13494817_15359.cpp:24:26: error: 'a' was not declared in this scope
             printf("% d",a[i]);
                          ^
0_0_13494817_15359.cpp:24:30: error: 'printf' was not declared in this scope
             printf("% d",a[i]);
                              ^
0_0_13494817_15359.cpp:26:16: error: 'printf' was not declared in this scope
     printf("\n");
                ^


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-12-03 15:02:36, Gzip enabled