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_39220374_8679.c: In function 'main':
0_0_39220374_8679.c:6:23: error: expected declaration specifiers or '...' before numeric constant
    6 |         double m, ans(0);
      |                       ^
0_0_39220374_8679.c:7:9: error: 'cin' undeclared (first use in this function)
    7 |         cin >> t >> n >> m;
      |         ^~~
0_0_39220374_8679.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
0_0_39220374_8679.c:12:13: error: 'ans' undeclared (first use in this function)
   12 |             ans += x * (100 - y) / 100.0;
      |             ^~~
0_0_39220374_8679.c:14:20: error: 'cout' undeclared (first use in this function)
   14 |         if (i != 1)cout << '\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-06-26 23:23:37, Gzip enabled