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_33720047_30437.cpp:2:12: error: 'll' does not name a type
 #define ll ll
            ^
0_0_33720047_30437.cpp:4:1: note: in expansion of macro 'll'
 ll n;
 ^
0_0_33720047_30437.cpp:2:12: error: 'll' does not name a type
 #define ll ll
            ^
0_0_33720047_30437.cpp:6:1: note: in expansion of macro 'll'
 ll su[100009],s[100009];
 ^
0_0_33720047_30437.cpp: In function 'void solve()':
0_0_33720047_30437.cpp:8:16: error: 'n' was not declared in this scope
  scanf("%lld",&n);
                ^
0_0_33720047_30437.cpp:2:12: error: 'll' was not declared in this scope
 #define ll ll
            ^
0_0_33720047_30437.cpp:12:6: note: in expansion of macro 'll'
  for(ll i=1; i<=n+1; i++) {
      ^
0_0_33720047_30437.cpp:12:14: error: 'i' was not declared in this scope
  for(ll i=1; i<=n+1; i++) {
              ^
0_0_33720047_30437.cpp:13:3: error: 'su' was not declared in this scope
   su[i]=su[i-1]+(a[i]!=b[i]);
   ^
0_0_33720047_30437.cpp:14:3: error: 's' was not declared in this scope
   s[i]=s[i-1]+(b[i]-'0');
   ^
0_0_33720047_30437.cpp:2:12: error: 'll' was not declared in this scope
 #define ll ll
            ^
0_0_33720047_30437.cpp:16:2: note: in expansion of macro 'll'
  ll ans=su[n+1];
  ^
0_0_33720047_30437.cpp:17:5: error: expected ';' before 's'
  ll s=0;
     ^
0_0_33720047_30437.cpp:18:9: error: expected ';' before 'i'
  for(ll i=1; i<=n+1; i++) {
         ^
0_0_33720047_30437.cpp:18:14: error: 'i' was not declared in this scope
  for(ll i=1; i<=n+1; i++) {
              ^
0_0_33720047_30437.cpp:19:6: error: expected ';' before 't'
   ll t=su[n+1]-su[i]+1;
      ^
0_0_33720047_30437.cpp:20:16: error: 't' was not declared in this scope
   if(a[i]=='1')t++;
                ^
0_0_33720047_30437.cpp:21:3: error: 't' was not declared in this scope
   t+=s;
   ^
0_0_33720047_30437.cpp:21:6: error: 's' was not declared in this scope
   t+=s;
      ^
0_0_33720047_30437.cpp:24:3: error: 'ans' was not declared in this scope
   ans=min(ans,t);
   ^
0_0_33720047_30437.cpp:26:18: error: 'ans' was not declared in this scope
  printf("%lld\n",ans);
                  ^
0_0_33720047_30437.cpp: In function 'int main()':
0_0_33720047_30437.cpp:2:12: error: 'll' was not declared in this scope
 #define ll ll
            ^
0_0_33720047_30437.cpp:29:2: note: in expansion of macro 'll'
  ll T;
  ^
0_0_33720047_30437.cpp:30:16: error: 'T' was not declared in this scope
  scanf("%lld",&T);
                ^


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 04:30:22, Gzip enabled