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_32867956_1567.cpp:1:9: error: expected unqualified-id before 'if'
         if(n==0)//如果是0个数,当然要输出1.
         ^
0_0_32867956_1567.cpp:9:9: error: '__int64' does not name a type
         __int64 sum=1;
         ^
0_0_32867956_1567.cpp:11:9: error: expected unqualified-id before 'for'
         for(int i=0;i<n;i++)
         ^
0_0_32867956_1567.cpp:11:21: error: 'i' does not name a type
         for(int i=0;i<n;i++)
                     ^
0_0_32867956_1567.cpp:11:25: error: 'i' does not name a type
         for(int i=0;i<n;i++)
                         ^
0_0_32867956_1567.cpp:23:13: error: expected constructor, destructor, or type conversion before '(' token
         sort(a,a+n);//我们对负数进行排序处理,如果是偶数个数,一会直接乘上就行,否则我们要抛弃绝对值最小的那个。//https://blog.csdn.net/mengxiang000000/article/details/50570459
             ^


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-12-05 10:37:33, Gzip enabled