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_20988679_1681.cpp:6:26: error: stray '#' in program
 const int maxn = 100000 + 10;
                          ^
0_0_20988679_1681.cpp:14:30: error: stray '#' in program
         for(i = 1; i <= n; i++) scanf("%lf", &d[i]);
                              ^
0_0_20988679_1681.cpp:14:35: error: stray '#' in program
         for(i = 1; i <= n; i++) scanf("%lf", &d[i]);
                                   ^
0_0_20988679_1681.cpp:15:30: error: stray '#' in program
         for(i = 1; i <= m; i++){
                              ^
0_0_20988679_1681.cpp:15:35: error: stray '#' in program
         for(i = 1; i <= m; i++){
                                   ^
0_0_20988679_1681.cpp:17:19: error: stray '#' in program
             d[u] += w / 2.0;
                   ^
0_0_20988679_1681.cpp:18:19: error: stray '#' in program
             d[v] += w / 2.0;
                   ^
0_0_20988679_1681.cpp:20:16: error: stray '#' in program
         sort(d+1, d+1+n);
                ^
0_0_20988679_1681.cpp:20:25: error: stray '#' in program
         sort(d+1, d+1+n);
                         ^
0_0_20988679_1681.cpp:20:31: error: stray '#' in program
         sort(d+1, d+1+n);
                               ^
0_0_20988679_1681.cpp:23:20: error: stray '#' in program
             Alice += d[i];
                    ^
0_0_20988679_1681.cpp:24:18: error: stray '#' in program
             Bob += d[i-1];
                  ^
0_0_20988679_1681.cpp:6:31: error: expected unqualified-id before numeric constant
 const int maxn = 100000 + 10;
                               ^
0_0_20988679_1681.cpp: In function 'int main()':
0_0_20988679_1681.cpp:14:33: error: expected ')' before ';' token
         for(i = 1; i <= n; i++) scanf("%lf", &d[i]);
                                 ^
0_0_20988679_1681.cpp:14:36: error: lvalue required as unary '&' operand
         for(i = 1; i <= n; i++) scanf("%lf", &d[i]);
                                    ^
0_0_20988679_1681.cpp:14:39: error: expected primary-expression before ')' token
         for(i = 1; i <= n; i++) scanf("%lf", &d[i]);
                                       ^
0_0_20988679_1681.cpp:15:33: error: expected ')' before ';' token
         for(i = 1; i <= m; i++){
                                 ^
0_0_20988679_1681.cpp:15:36: error: lvalue required as unary '&' operand
         for(i = 1; i <= m; i++){
                                    ^
0_0_20988679_1681.cpp:15:39: error: expected primary-expression before ')' token
         for(i = 1; i <= m; i++){
                                       ^
0_0_20988679_1681.cpp:20:17: error: invalid operands of types 'double [32]' and 'int' to binary 'operator&'
         sort(d+1, d+1+n);
                 ^
0_0_20988679_1681.cpp:20:26: error: invalid operands of types 'double [32]' and 'int' to binary 'operator&'
         sort(d+1, d+1+n);
                          ^
0_0_20988679_1681.cpp:20:36: error: expected ';' before ')' token
         sort(d+1, d+1+n);
                                    ^
0_0_20988679_1681.cpp:23:21: error: invalid operands of types 'double' and 'int' to binary 'operator&'
             Alice += d[i];
                     ^
0_0_20988679_1681.cpp:23:24: error: expected primary-expression before '=' token
             Alice += d[i];
                        ^
0_0_20988679_1681.cpp:24:19: error: invalid operands of types 'double' and 'int' to binary 'operator&'
             Bob += d[i-1];
                   ^
0_0_20988679_1681.cpp:24:22: error: expected primary-expression before '=' token
             Bob += d[i-1];
                      ^


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-23 01:10:35, Gzip enabled