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


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.000000(s) query 1, Server time : 2025-02-18 20:04:43, Gzip enabled