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_39146520_2749.c:5:15: error: expected ':', ',', ';', '}' or '__attribute__' before '=' token
    5 |         int t = 0;
      |               ^
0_0_39146520_2749.c: In function 'main':
0_0_39146520_2749.c:24:24: error: 'true' undeclared (first use in this function)
   24 |                 while (true) {
      |                        ^~~~
0_0_39146520_2749.c:2:1: note: 'true' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
0_0_39146520_2749.c:24:24: note: each undeclared identifier is reported only once for each function it appears in
   24 |                 while (true) {
      |                        ^~~~
0_0_39146520_2749.c:27:43: error: 'struct mystack' has no member named 'empty'
   27 |                                 while (!ms.empty()) {
      |                                           ^
0_0_39146520_2749.c:28:56: error: 'struct mystack' has no member named 'top'
   28 |                                         printf("%c", ms.top());
      |                                                        ^
0_0_39146520_2749.c:29:43: error: 'struct mystack' has no member named 'pop'
   29 |                                         ms.pop();
      |                                           ^
0_0_39146520_2749.c:35:35: error: 'struct mystack' has no member named 'push'
   35 |                                 ms.push(ch);
      |                                   ^


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-26 11:34:20, Gzip enabled