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_36491218_13930.cpp:31:7: error: 'N' was not declared in this scope
 int f[N],SG[MAXN],S[MAXN];
       ^
0_0_36491218_13930.cpp:31:13: error: 'MAXN' was not declared in this scope
 int f[N],SG[MAXN],S[MAXN];
             ^
0_0_36491218_13930.cpp:31:21: error: 'MAXN' was not declared in this scope
 int f[N],SG[MAXN],S[MAXN];
                     ^
0_0_36491218_13930.cpp: In function 'void getSG(int)':
0_0_36491218_13930.cpp:33:2: error: 'f' was not declared in this scope
  f[0]=1,f[0]=1;
  ^
0_0_36491218_13930.cpp:38:12: error: 'SG' was not declared in this scope
     memset(SG,0,sizeof(SG));
            ^
0_0_36491218_13930.cpp:42:16: error: 'S' was not declared in this scope
         memset(S,0,sizeof(S));
                ^
0_0_36491218_13930.cpp:43:38: error: 'N' was not declared in this scope
         for(j = 0; f[j] <= i && j <= N; j++)
                                      ^
0_0_36491218_13930.cpp: In function 'int main()':
0_0_36491218_13930.cpp:57:2: error: expected ';' before 'while'
  while(cin>>n>>m>>p){
  ^
0_0_36491218_13930.cpp:66:1: error: expected '}' at end of input
 }
 ^


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 00:29:03, Gzip enabled