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_28510215_24961.cpp:4:11: error: expected ',' or '...' before numeric constant
 #define n 20
           ^
0_0_28510215_24961.cpp:8:16: note: in expansion of macro 'n'
 void getSG(int n)
                ^
0_0_28510215_24961.cpp: In function 'int main()':
0_0_28510215_24961.cpp:4:11: error: expected unqualified-id before numeric constant
 #define n 20
           ^
0_0_28510215_24961.cpp:29:6: note: in expansion of macro 'n'
  int n,m,p;
      ^
0_0_28510215_24961.cpp:31:6: error: 'i' was not declared in this scope
  for(i=2;i<=16;i++)
      ^
0_0_28510215_24961.cpp:34:28: error: 'm' was not declared in this scope
  while(~scanf("%d %d %d",n,m,p))
                            ^
0_0_28510215_24961.cpp:34:30: error: 'p' was not declared in this scope
  while(~scanf("%d %d %d",n,m,p))
                              ^


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-02 21:35:16, Gzip enabled