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_39378133_1364.cpp: In function 'int build(int, int)':
0_0_39378133_1364.cpp:29:16: error: 'tot' was not declared in this scope
   29 |     int rt = ++tot;
      |                ^~~
0_0_39378133_1364.cpp: In function 'int update(int, int, int, int)':
0_0_39378133_1364.cpp:42:16: error: 'tot' was not declared in this scope
   42 |     int rt = ++tot;
      |                ^~~
0_0_39378133_1364.cpp: In function 'int main()':
0_0_39378133_1364.cpp:69:5: error: 't' was not declared in this scope; did you mean 'tm'?
   69 |     t = read();
      |     ^
      |     tm
0_0_39378133_1364.cpp:72:9: error: 'n' was not declared in this scope
   72 |         n = read(), m = read(), tot = 0;
      |         ^
0_0_39378133_1364.cpp:72:21: error: 'm' was not declared in this scope; did you mean 'tm'?
   72 |         n = read(), m = read(), tot = 0;
      |                     ^
      |                     tm
0_0_39378133_1364.cpp:72:33: error: 'tot' was not declared in this scope
   72 |         n = read(), m = read(), tot = 0;
      |                                 ^~~


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 10:26:49, Gzip enabled