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_39215538_20398.cpp: In function 'int main()':
0_0_39215538_20398.cpp:8:11: error: 'scanf' was not declared in this scope
    8 |     while(scanf("%d %d",&n,&m)!=EOF){
      |           ^~~~~
0_0_39215538_20398.cpp:8:33: error: 'EOF' was not declared in this scope
    8 |     while(scanf("%d %d",&n,&m)!=EOF){
      |                                 ^~~
0_0_39215538_20398.cpp:1:1: note: 'EOF' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | using namespace std;
0_0_39215538_20398.cpp:11:9: error: 'memset' was not declared in this scope
   11 |         memset(stuMap,0,60*10*sizeof(ElemType));
      |         ^~~~~~
0_0_39215538_20398.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
  +++ |+#include <cstring>
    1 | using namespace std;
0_0_39215538_20398.cpp:16:17: error: 'cin' was not declared in this scope
   16 |                 cin >> stuMap[i][j];
      |                 ^~~
0_0_39215538_20398.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
  +++ |+#include <iostream>
    1 | using namespace std;
0_0_39215538_20398.cpp:22:13: error: 'printf' was not declared in this scope
   22 |             printf("%.2lf%c",stu[i]/m,i!=n-1?' ':'\n');
      |             ^~~~~~
0_0_39215538_20398.cpp:22:13: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39215538_20398.cpp:26:13: error: 'printf' was not declared in this scope
   26 |             printf("%.2lf%c",grade[i],i!=m-1?' ':'\n');
      |             ^~~~~~
0_0_39215538_20398.cpp:26:13: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39215538_20398.cpp:41:9: error: 'cout' was not declared in this scope
   41 |         cout << num << endl;
      |         ^~~~
0_0_39215538_20398.cpp:41:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39215538_20398.cpp:41:24: error: 'endl' was not declared in this scope
   41 |         cout << num << endl;
      |                        ^~~~
0_0_39215538_20398.cpp:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
  +++ |+#include <ostream>
    1 | using namespace std;
0_0_39215538_20398.cpp:43:5: error: 'retu' was not declared in this scope
   43 |     retu
      |     ^~~~
0_0_39215538_20398.cpp:43:9: error: expected '}' at end of input
   43 |     retu
      |         ^
0_0_39215538_20398.cpp:6:1: note: to match this '{'
    6 | {
      | ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-18 23:42:11, Gzip enabled