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_20249526_28208.cpp:1:2: error: invalid preprocessing directive #nline
 #nline int GCD(int a, int b)  //不知道inline的同学可以百度一下,主要作用是提高函数效率。
  ^
0_0_20249526_28208.cpp:2:1: error: expected unqualified-id before '{' token
 {  
 ^
0_0_20249526_28208.cpp: In function 'int main()':
0_0_20249526_28208.cpp:9:38: error: 'scanf' was not declared in this scope
     while (scanf("%d %d", &step, &mod) != EOF)  
                                      ^
0_0_20249526_28208.cpp:9:43: error: 'EOF' was not declared in this scope
     while (scanf("%d %d", &step, &mod) != EOF)  
                                           ^
0_0_20249526_28208.cpp:11:40: error: 'printf' was not declared in this scope
         printf("%10d%10d    ", step,mod);    
                                        ^
0_0_20249526_28208.cpp:12:25: error: 'GCD' was not declared in this scope
         if(GCD(step, mod) == 1) printf("Good Choice\n\n");    
                         ^


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-18 22:45:19, Gzip enabled