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_37412720_28934.cpp: In function 'void flag1(char*)':
0_0_37412720_28934.cpp:19:34: error: 'strlen' was not declared in this scope
     for (int i = 2; i < strlen(nb); i++)
                                  ^
0_0_37412720_28934.cpp:31:27: error: 'printf' was not declared in this scope
     printf("%d/%d\n", x, y);
                           ^
0_0_37412720_28934.cpp: In function 'void flag0(char*)':
0_0_37412720_28934.cpp:37:34: error: 'strlen' was not declared in this scope
     for (int i = 2; i < strlen(nb); i++)
                                  ^
0_0_37412720_28934.cpp:47:33: error: 'printf' was not declared in this scope
     printf("%d/%d\n", sum1, xiao);
                                 ^
0_0_37412720_28934.cpp: In function 'int main()':
0_0_37412720_28934.cpp:54:19: error: 'scanf' was not declared in this scope
     scanf("%d", &n);
                   ^
0_0_37412720_28934.cpp:55:13: error: 'getchar' was not declared in this scope
     getchar();
             ^
0_0_37412720_28934.cpp:59:16: error: 'gets' was not declared in this scope
         gets(nb);
                ^
0_0_37412720_28934.cpp:61:38: error: 'strlen' was not declared in this scope
         for (int i = 2; i < strlen(nb); i++)
                                      ^


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-17 08:18:58, Gzip enabled