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_19231092_23455.cpp:54:14: error: stray '#' in program
 int main(){  #ifdef ONLINE_JUDGE  #else    freopen("test.in","r",stdin);  #endif  
              ^
0_0_19231092_23455.cpp:54:35: error: stray '#' in program
 int main(){  #ifdef ONLINE_JUDGE  #else    freopen("test.in","r",stdin);  #endif  
                                   ^
0_0_19231092_23455.cpp:54:75: error: stray '#' in program
 int main(){  #ifdef ONLINE_JUDGE  #else    freopen("test.in","r",stdin);  #endif  
                                                                           ^
0_0_19231092_23455.cpp:25:8: error: 's' was not declared in this scope
 int i=(s);i<=(t);i++)
        ^
0_0_19231092_23455.cpp:25:11: error: 'i' does not name a type
 int i=(s);i<=(t);i++)
           ^
0_0_19231092_23455.cpp:25:18: error: 'i' does not name a type
 int i=(s);i<=(t);i++)
                  ^
0_0_19231092_23455.cpp:27:11: error: 'i' does not name a type
 int i=(t);i>=s;i--) 
           ^
0_0_19231092_23455.cpp:27:16: error: 'i' does not name a type
 int i=(t);i>=s;i--) 
                ^
0_0_19231092_23455.cpp:42:12: error: 'vector' does not name a type
 int bit[N];vector<int>G[Maxans];
            ^
0_0_19231092_23455.cpp: In function 'bool judge(int)':
0_0_19231092_23455.cpp:46:26: error: expected primary-expression before '{' token
 int cnt=0;  REP(i,1,16)  {    if(x&(1<<(i-1)))    {      bit[++cnt]=a[i];    }  }  return cnt==4;}
                          ^
0_0_19231092_23455.cpp:46:84: error: expected primary-expression before 'return'
 int cnt=0;  REP(i,1,16)  {    if(x&(1<<(i-1)))    {      bit[++cnt]=a[i];    }  }  return cnt==4;}
                                                                                    ^
0_0_19231092_23455.cpp:46:84: error: expected ';' before 'return'
0_0_19231092_23455.cpp:46:84: error: expected primary-expression before 'return'
0_0_19231092_23455.cpp:46:84: error: expected ')' before 'return'
0_0_19231092_23455.cpp: In function 'int fuck()':
0_0_19231092_23455.cpp:47:31: error: expected primary-expression before '{' token
 int fuck(){  REP(i,0,Maxans)  {    G[i].clear();  }  memset(state,0,sizeof(state));  sort(a+1,a+1+16);  REP(i,0,(1<<16)-1)  {    if(judge(i))    {      do      {        
                               ^
0_0_19231092_23455.cpp:47:101: error: 'sort' was not declared in this scope
 int fuck(){  REP(i,0,Maxans)  {    G[i].clear();  }  memset(state,0,sizeof(state));  sort(a+1,a+1+16);  REP(i,0,(1<<16)-1)  {    if(judge(i))    {      do      {        
                                                                                                     ^
0_0_19231092_23455.cpp:47:101: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62:0,
                 from 0_0_19231092_23455.cpp:5:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:4705:5: note:   'std::sort'
     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
     ^
0_0_19231092_23455.cpp:47:102: error: expected ')' before ';' token
 int fuck(){  REP(i,0,Maxans)  {    G[i].clear();  }  memset(state,0,sizeof(state));  sort(a+1,a+1+16);  REP(i,0,(1<<16)-1)  {    if(judge(i))    {      do      {        
                                                                                                      ^
0_0_19231092_23455.cpp:47:125: error: expected primary-expression before '{' token
 int fuck(){  REP(i,0,Maxans)  {    G[i].clear();  }  memset(state,0,sizeof(state));  sort(a+1,a+1+16);  REP(i,0,(1<<16)-1)  {    if(judge(i))    {      do      {        
                                                                                                                             ^
0_0_19231092_23455.cpp:24:20: error: expected primary-expression before 'for'
 #define REP(i,s,t) for(
                    ^
0_0_19231092_23455.cpp:52:13: note: in expansion of macro 'REP'
 int ans=0;  REP(i,0,(1<<16)-1)  {    ans+=state[i]*state[((1<<16)-1)^i];  }  return ans/2;}
             ^
0_0_19231092_23455.cpp:24:20: error: expected ')' before 'for'
 #define REP(i,s,t) for(
                    ^
0_0_19231092_23455.cpp:52:13: note: in expansion of macro 'REP'
 int ans=0;  REP(i,0,(1<<16)-1)  {    ans+=state[i]*state[((1<<16)-1)^i];  }  return ans/2;}
             ^
0_0_19231092_23455.cpp:52:33: error: expected primary-expression before '{' token
 int ans=0;  REP(i,0,(1<<16)-1)  {    ans+=state[i]*state[((1<<16)-1)^i];  }  return ans/2;}
                                 ^
0_0_19231092_23455.cpp:52:78: error: expected primary-expression before 'return'
 int ans=0;  REP(i,0,(1<<16)-1)  {    ans+=state[i]*state[((1<<16)-1)^i];  }  return ans/2;}
                                                                              ^
0_0_19231092_23455.cpp:52:78: error: expected ';' before 'return'
0_0_19231092_23455.cpp:52:78: error: expected primary-expression before 'return'
0_0_19231092_23455.cpp:52:78: error: expected ')' before 'return'
0_0_19231092_23455.cpp: In function 'int main()':
0_0_19231092_23455.cpp:54:15: error: 'ifdef' was not declared in this scope
 int main(){  #ifdef ONLINE_JUDGE  #else    freopen("test.in","r",stdin);  #endif  
               ^
0_0_19231092_23455.cpp:54:76: error: 'endif' was not declared in this scope
 int main(){  #ifdef ONLINE_JUDGE  #else    freopen("test.in","r",stdin);  #endif  
                                                                            ^
0_0_19231092_23455.cpp:56:94: error: expected primary-expression before '{' token
 int ca=1;  while(~scanf("%d",&a[1]))  {    if(!a[1])    {      break;    }    REP(i,2,16)    {      scanf("%d",&a[i]);    }    
                                                                                              ^
0_0_19231092_23455.cpp:58:43: error: 'ca' was not declared in this scope
 int ans=fuck();    printf("Case %d: %d\n",ca++,ans);  }  return 0;}
                                           ^
0_0_19231092_23455.cpp:58:52: error: expected ')' before ';' token
 int ans=fuck();    printf("Case %d: %d\n",ca++,ans);  }  return 0;}
                                                    ^


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-23 02:57:06, Gzip enabled