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_39168936_11855.cpp: In function 'int main()':
0_0_39168936_11855.cpp:39:12: error: 'sd' was not declared in this scope; did you mean 'std'?
   39 |     while(~sd(k)){
      |            ^~
      |            std
0_0_39168936_11855.cpp:40:9: error: 'ss' was not declared in this scope; did you mean 's'?
   40 |         ss(s);
      |         ^~
      |         s
0_0_39168936_11855.cpp:42:13: error: 'strlen' was not declared in this scope
   42 |         len=strlen(s);
      |             ^~~~~~
0_0_39168936_11855.cpp:1:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
  +++ |+#include <cstring>
    1 | const int N=20+5;
0_0_39168936_11855.cpp:45:21: error: 'puts' was not declared in this scope
   45 |         if(flag==0) puts("error");
      |                     ^~~~
0_0_39168936_11855.cpp:46:26: error: 'puts' was not declared in this scope
   46 |         else if(flag==2) puts("rejected");
      |                          ^~~~
0_0_39168936_11855.cpp:48:13: error: 'printf' was not declared in this scope
   48 |             printf("%d",maxx);
      |             ^~~~~~
0_0_39168936_11855.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | const int N=20+5;
0_0_39168936_11855.cpp:52:13: error: 'puts' was not declared in this scope
   52 |             puts("");
      |             ^~~~


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-05 02:48:47, Gzip enabled