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_39147650_24030.cpp: In function 'int get_size(char*)':
0_0_39147650_24030.cpp:4:13: error: 'get_type' was not declared in this scope
    4 |     int res=get_type(s);
      |             ^~~~~~~~
0_0_39147650_24030.cpp:5:13: error: 'strlen' was not declared in this scope
    5 |     int len=strlen(s);
      |             ^~~~~~
0_0_39147650_24030.cpp:1:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
  +++ |+#include <cstring>
    1 | 
0_0_39147650_24030.cpp: In function 'int main()':
0_0_39147650_24030.cpp:26:5: error: 'scanf' was not declared in this scope
   26 |     scanf("%d",&t);
      |     ^~~~~
0_0_39147650_24030.cpp:30:14: error: 'buf' was not declared in this scope
   30 |         gets(buf);
      |              ^~~
0_0_39147650_24030.cpp:30:9: error: 'gets' was not declared in this scope
   30 |         gets(buf);
      |         ^~~~
0_0_39147650_24030.cpp:42:9: error: 'printf' was not declared in this scope
   42 |         printf("Case #%d: %d\n",i,r);
      |         ^~~~~~
0_0_39147650_24030.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | 


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-26 19:05:16, Gzip enabled