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

149646_0_8470.cpp:10: error: `string' has not been declared
149646_0_8470.cpp:11: error: ISO C++ forbids declaration of `str' with no type
149646_0_8470.cpp: In function `void input(hp&, int)':
149646_0_8470.cpp:13: error: invalid types `int[int]' for array subscript
149646_0_8470.cpp:13: error: `size' has not been declared
149646_0_8470.cpp:13: error: request for member of non-aggregate type before '(' token
149646_0_8470.cpp:14: error: `erase' has not been declared
149646_0_8470.cpp:14: error: request for member of non-aggregate type before '(' token
149646_0_8470.cpp:15: error: expected primary-expression before "int"
149646_0_8470.cpp:15: error: expected `)' before "int"
149646_0_8470.cpp:17: error: invalid types `int[int]' for array subscript
149646_0_8470.cpp: In function `int main()':
149646_0_8470.cpp:49: error: `string' undeclared (first use this function)
149646_0_8470.cpp:49: error: (Each undeclared identifier is reported only once for each function it appears in.)
149646_0_8470.cpp:49: error: expected `;' before "str1"
149646_0_8470.cpp:51: error: no match for 'operator<<' in 'std::cin << t'
149646_0_8470.cpp:54: error: `str1' undeclared (first use this function)
149646_0_8470.cpp:54: error: `str2' undeclared (first use this function)


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-18 20:41:38, Gzip enabled