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_20966893_24474.cpp: In function 'void work(char)':
0_0_20966893_24474.cpp:18:27: error: 'swap' was not declared in this scope
     if (cmd=='1') swap(n,m);
                           ^
0_0_20966893_24474.cpp: In function 'void stkPush(char)':
0_0_20966893_24474.cpp:27:29: error: 'strchr' was not declared in this scope
         if (strchr(cd[i],cmd)!=NULL){
                             ^
0_0_20966893_24474.cpp:27:32: error: 'NULL' was not declared in this scope
         if (strchr(cd[i],cmd)!=NULL){
                                ^
0_0_20966893_24474.cpp:28:33: error: 'strlen' was not declared in this scope
             int len=strlen(sp[i]);
                                 ^
0_0_20966893_24474.cpp: In function 'int main()':
0_0_20966893_24474.cpp:39:31: error: 'scanf' was not declared in this scope
     while (~scanf("%d%d",&n,&m)){
                               ^
0_0_20966893_24474.cpp:43:25: error: 'strlen' was not declared in this scope
         int len=strlen(s);
                         ^
0_0_20966893_24474.cpp:46:29: error: 'printf' was not declared in this scope
         printf("%d %d\n",n,m);
                             ^


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-30 06:04:17, Gzip enabled