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_36468036_9961.cpp: In function 'int main()':
0_0_36468036_9961.cpp:48:9: error: 'LL' was not declared in this scope
         LL ans = 0, sum = 0, ok=0;
         ^
0_0_36468036_9961.cpp:51:27: error: 'ans' was not declared in this scope
             if(in[i]%2==1)ans++;
                           ^
0_0_36468036_9961.cpp:52:13: error: 'sum' was not declared in this scope
             sum += in[i];
             ^
0_0_36468036_9961.cpp:55:30: error: 'ok' was not declared in this scope
                 if(mp[s]==0){ok++; mp[s]=1;}
                              ^
0_0_36468036_9961.cpp:58:12: error: 'sum' was not declared in this scope
         if(sum==0){cout<<"0\n"; continue;}
            ^
0_0_36468036_9961.cpp:59:9: error: 'sum' was not declared in this scope
         sum = sum/2+(ok-1)*2;
         ^
0_0_36468036_9961.cpp:59:22: error: 'ok' was not declared in this scope
         sum = sum/2+(ok-1)*2;
                      ^
0_0_36468036_9961.cpp:60:12: error: 'ans' was not declared in this scope
         if(ans>2){cout<<"-1\n"; continue;}
            ^


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 03:25:07, Gzip enabled