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_13813284_24585.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
 #include <stdio.h><br>#include <string.h><br>#include <algorithm><br>#include <iostream><br>#include <map><br><br>using namespace std;<br><br>int n;<br>long double C[128][128],D[101];<br>long double F[128],G[128],W[128];<br><br>int main()<br>{<br>     int T;<br>     int nowCase = 0;<br>     scanf(\"%d\",&T);<br>     memset(C,0,sizeof(C));<br>     C[0][0] = 1;<br>     for (int i = 1;i <= 100;++i)<br>     {<br>         C[i][0] = 1;<br>         for (int j = 1;j <= i;++j)<br>             C[i][j] = C[i-1][j-1] + C[i-1][j];<br>     }<br>     memset(W,0,sizeof(W));<br>     W[2] = 1;<br>     for (int i = 3;i <= 100;++i)<br>         W[i] = C[i][2] * W[i-1];<br>     memset(F,0,sizeof(F));<br>     memset(G,0,sizeof(G));<br>     F[2] = 1;<br>     G[2] = 2;<br>     for (int i = 3;i <= 100;++i)<br>     {<br>         F[i] = ((i-1) + C[i][2] * F[i-1])\/C[i][2];<br>         G[i] = ((C[i][2] - 1)*G[i-1] + 2*F[i-1] + 2)\/C[i][2];<br>     }<br>     for (int i = 3;i <= 10;++i)<br>         cout << F[i] << \" \" <<   G[i] << endl;<br><br>     for (int cs = 1;cs <= T;++cs)<br>     {<br>         int n,sum = 0;<br>         scanf(\"%d\",&n);<br>         for (int i = 1;i <= n;++i)<br>         {<br>             cin >> D[i];<br>             sum += (int)D[i];<br>         }<br>         long double ans = 0.00;<br>         for (int i = 1;i <= n;++i)<br>             ans += D[i]*D[i]*F[n];<br>         for (int i = 1;i <= n;++i)<br>             for (int j = i+1;j <= n;++j)<br>                 ans += D[i]*D[j]*G[n];<br>         printf(\"Case %d: \",++nowCase);<br>         printf(\"%0.2f\\n\",(double)ans);<br>     }<br>     return 0;<br>}<br>","post_no":1,"type":"0","comment_num":0,"props":null,"post_index":0}}'                                         
          ^


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-26 08:24:45, Gzip enabled