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_39078218_23061.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |          ^
0_0_39078218_23061.cpp: In function 'int main()':
0_0_39078218_23061.cpp:9:15: error: 'scanf' was not declared in this scope
    9 |         while(scanf("%d%d",&n,&m)!=EOF)
      |               ^~~~~
0_0_39078218_23061.cpp:9:36: error: 'EOF' was not declared in this scope
    9 |         while(scanf("%d%d",&n,&m)!=EOF)
      |                                    ^~~
0_0_39078218_23061.cpp:1:1: note: 'EOF' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | #include
0_0_39078218_23061.cpp:24:34: error: 'printf' was not declared in this scope
   24 |                         if(i!=0) printf(" "); //输出每个人的平均成绩,注意输出格式
      |                                  ^~~~~~
0_0_39078218_23061.cpp:24:34: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39078218_23061.cpp:25:25: error: 'printf' was not declared in this scope
   25 |                         printf("%.2lf",avg1);
      |                         ^~~~~~
0_0_39078218_23061.cpp:25:25: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39078218_23061.cpp:28:17: error: 'printf' was not declared in this scope
   28 |                 printf("\n");
      |                 ^~~~~~
0_0_39078218_23061.cpp:28: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-16 11:15:14, Gzip enabled