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_21002927_3136.cpp:1:13: error: 'N' was not declared in this scope
 int n, m, a[N], b[N], c[N];
             ^
0_0_21002927_3136.cpp:1:19: error: 'N' was not declared in this scope
 int n, m, a[N], b[N], c[N];
                   ^
0_0_21002927_3136.cpp:1:25: error: 'N' was not declared in this scope
 int n, m, a[N], b[N], c[N];
                         ^
0_0_21002927_3136.cpp: In function 'int read()':
0_0_21002927_3136.cpp:18:23: error: 'getchar' was not declared in this scope
     while(c = getchar(), !isdigit(c));
                       ^
0_0_21002927_3136.cpp:18:36: error: 'isdigit' was not declared in this scope
     while(c = getchar(), !isdigit(c));
                                    ^
0_0_21002927_3136.cpp:20:23: error: 'getchar' was not declared in this scope
     while(c = getchar(), isdigit(c)) x = x * 10 + c - '0';
                       ^
0_0_21002927_3136.cpp:20:35: error: 'isdigit' was not declared in this scope
     while(c = getchar(), isdigit(c)) x = x * 10 + c - '0';
                                   ^
0_0_21002927_3136.cpp: In function 'int main()':
0_0_21002927_3136.cpp:32:37: error: 'a' was not declared in this scope
         for(int i = 1; i <= n; ++i) a[i] = read();
                                     ^
0_0_21002927_3136.cpp:34:16: error: 'b' was not declared in this scope
         memset(b, 0, sizeof b);
                ^
0_0_21002927_3136.cpp:34:30: error: 'memset' was not declared in this scope
         memset(b, 0, sizeof b);
                              ^
0_0_21002927_3136.cpp:35:16: error: 'c' was not declared in this scope
         memset(c, 0, sizeof c);
                ^
0_0_21002927_3136.cpp:39:39: error: 'a' was not declared in this scope
             tmp += i - m - 1 - sum(c, a[i]);
                                       ^
0_0_21002927_3136.cpp:46:27: error: 'a' was not declared in this scope
             tmp -= sum(c, a[i] - 1);
                           ^
0_0_21002927_3136.cpp:54:31: error: 'min' was not declared in this scope
             ans = min(ans, tmp);
                               ^
0_0_21002927_3136.cpp:56:30: error: 'printf' was not declared in this scope
         printf("%I64d\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-25 18:00:38, Gzip enabled