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_39659257_491.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include <iostream>
      |          ^
0_0_39659257_491.cpp:2:10: error: #include expects "FILENAME" or <FILENAME>
    2 | #include <cstring>
      |          ^
0_0_39659257_491.cpp:3:10: error: #include expects "FILENAME" or <FILENAME>
    3 | #include <algorithm>
      |          ^
0_0_39659257_491.cpp: In function 'int main()':
0_0_39659257_491.cpp:17:15: error: 'scanf' was not declared in this scope
   17 |         while(scanf("%d %d",&n,&m)!=EOF){
      |               ^~~~~
0_0_39659257_491.cpp:17:37: error: 'EOF' was not declared in this scope
   17 |         while(scanf("%d %d",&n,&m)!=EOF){
      |                                     ^~~
0_0_39659257_491.cpp:1:1: note: 'EOF' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | #include <iostream>
0_0_39659257_491.cpp:21:25: error: expected primary-expression before ')' token
   21 |         sort(a,a+n,Rule1);
      |                         ^
0_0_39659257_491.cpp:21:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   21 |         sort(a,a+n,Rule1);
      |         ^~~~
      |         short
0_0_39659257_491.cpp:23:17: error: 'printf' was not declared in this scope
   23 |                 printf("%d",a[i]);
      |                 ^~~~~~
0_0_39659257_491.cpp:23:17: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?


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-18 02:48:56, Gzip enabled