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_39189789_16030.cpp: In function 'int main()':
0_0_39189789_16030.cpp:4:7: error: 'scanf' was not declared in this scope
    4 | while(scanf("%d%d",&a,&b)!=EOF)
      |       ^~~~~
0_0_39189789_16030.cpp:4:28: error: 'EOF' was not declared in this scope
    4 | while(scanf("%d%d",&a,&b)!=EOF)
      |                            ^~~
0_0_39189789_16030.cpp:1:1: note: 'EOF' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | int main()
0_0_39189789_16030.cpp:7:16: error: expected ';' before ')' token
    7 | for(i=0,i<b,i++)
      |                ^
      |                ;
0_0_39189789_16030.cpp:12:1: error: 'printf' was not declared in this scope
   12 | printf("%.2lf",sum);
      | ^~~~~~
0_0_39189789_16030.cpp:12:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
0_0_39189789_16030.cpp:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
0_0_39189789_16030.cpp:12:21: error: expected ')' before '}' token
   12 | printf("%.2lf",sum);
      |                     ^
      |                     )
   13 | }
      | ~                    
0_0_39189789_16030.cpp:7:4: note: to match this '('
    7 | for(i=0,i<b,i++)
      |    ^
0_0_39189789_16030.cpp:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^


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-07-01 14:29:38, Gzip enabled