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_18258432_32493.cpp:1:1: error: 'include' does not name a type
 include <bits/stdc++.h>
 ^
0_0_18258432_32493.cpp:5:9: error: 'N' was not declared in this scope
 int ind[N];
         ^
0_0_18258432_32493.cpp:7:10: error: 'N' was not declared in this scope
 double p[N], cc[N];
          ^
0_0_18258432_32493.cpp:7:17: error: 'N' was not declared in this scope
 double p[N], cc[N];
                 ^
0_0_18258432_32493.cpp:9:10: error: 'N' was not declared in this scope
 double f[N];
          ^
0_0_18258432_32493.cpp:10:8: error: 'N' was not declared in this scope
 int in[N];
        ^
0_0_18258432_32493.cpp:12:12: error: 'N' was not declared in this scope
 double arr[N * 3];
            ^
0_0_18258432_32493.cpp: In function 'void add(int, int, double)':
0_0_18258432_32493.cpp:17:15: error: 'ind' was not declared in this scope
     nt[cnt] = ind[a];
               ^
0_0_18258432_32493.cpp:20:5: error: 'in' was not declared in this scope
     in[b]++;
     ^
0_0_18258432_32493.cpp: In function 'void solve()':
0_0_18258432_32493.cpp:24:8: error: 'in' was not declared in this scope
 memset(in,0,sizeof(in));
        ^
0_0_18258432_32493.cpp:24:23: error: 'memset' was not declared in this scope
 memset(in,0,sizeof(in));
                       ^
0_0_18258432_32493.cpp:26:19: error: 'scanf' was not declared in this scope
     scanf("%d", &n);
                   ^
0_0_18258432_32493.cpp:27:22: error: 'exit' was not declared in this scope
     if(n == 0) exit(0);
                      ^
0_0_18258432_32493.cpp:28:5: error: 'fill' is not a member of 'std'
     std::fill(ind, ind + n + 1, -1);
     ^
0_0_18258432_32493.cpp:28:15: error: 'ind' was not declared in this scope
     std::fill(ind, ind + n + 1, -1);
               ^
0_0_18258432_32493.cpp:31:25: error: 'p' was not declared in this scope
         scanf("%lf%lf", p + i, cc + i);
                         ^
0_0_18258432_32493.cpp:31:32: error: 'cc' was not declared in this scope
         scanf("%lf%lf", p + i, cc + i);
                                ^
0_0_18258432_32493.cpp:32:9: error: 'f' was not declared in this scope
         f[i] = p[i];
         ^
0_0_18258432_32493.cpp:37:57: error: 'arr' was not declared in this scope
         for(int j = 0; j < 2 * K - 1; j++) scanf("%lf", arr + j);
                                                         ^
0_0_18258432_32493.cpp:39:17: error: 'arr' was not declared in this scope
             add(arr[i + 2], arr[i], arr[i + 1]);
                 ^
0_0_18258432_32493.cpp:42:5: error: 'queue' is not a member of 'std'
     std::queue<int>q;
     ^
0_0_18258432_32493.cpp:42:16: error: expected primary-expression before 'int'
     std::queue<int>q;
                ^
0_0_18258432_32493.cpp:43:48: error: 'q' was not declared in this scope
     for(int i = 1; i <= n; i++) if(in[i] == 0) q.push(i);
                                                ^
0_0_18258432_32493.cpp:44:11: error: 'q' was not declared in this scope
     while(q.size()) {
           ^
0_0_18258432_32493.cpp:49:13: error: 'f' was not declared in this scope
             f[v] = std::max(f[v], f[t] * c[k]);
             ^
0_0_18258432_32493.cpp:49:20: error: 'max' is not a member of 'std'
             f[v] = std::max(f[v], f[t] * c[k]);
                    ^
0_0_18258432_32493.cpp:55:40: error: 'cc' was not declared in this scope
     for(int i = 1; i <= n; i++) ans += cc[i] * f[i];
                                        ^
0_0_18258432_32493.cpp:55:48: error: 'f' was not declared in this scope
     for(int i = 1; i <= n; i++) ans += cc[i] * f[i];
                                                ^
0_0_18258432_32493.cpp:57:25: error: 'printf' was not declared in this scope
     printf("%.2f\n", ans);
                         ^


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-29 19:43:47, Gzip enabled