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_14569891_5218.cpp: In function 'bool check(long long int)':
0_0_14569891_5218.cpp:10:2: error: 'c' was not declared in this scope
 {c
  ^
0_0_14569891_5218.cpp:22:17: error: 'sum_2' was not declared in this scope
                 sum_2-=cnt[j]*(j-i-1)*(j-i-1);
                 ^
0_0_14569891_5218.cpp:23:17: error: 'sum_1' was not declared in this scope
                 sum_1-=cnt[j]*(j-i-1);
                 ^
0_0_14569891_5218.cpp:24:17: error: 'sum' was not declared in this scope
                 sum-=cnt[j];
                 ^
0_0_14569891_5218.cpp:28:9: error: 'sum_2' was not declared in this scope
         sum_2+=2*sum_1+sum;
         ^
0_0_14569891_5218.cpp:28:18: error: 'sum_1' was not declared in this scope
         sum_2+=2*sum_1+sum;
                  ^
0_0_14569891_5218.cpp:28:24: error: 'sum' was not declared in this scope
         sum_2+=2*sum_1+sum;
                        ^
0_0_14569891_5218.cpp:34:9: error: 'ans' was not declared in this scope
         ans+=cnt[i];
         ^
0_0_14569891_5218.cpp:36:12: error: 'ans' was not declared in this scope
     return ans<=k;//返回所需冲击波的数量与k的关系
            ^


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 12:27:23, Gzip enabled