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_38955038_391.cpp: In function 'long long int query(long long int, long long int, long long int, long long int)':
0_0_38955038_391.cpp:27:23: error: 'tint' does not name a type; did you mean 'int'?
   27 |         for (register tint i = l; i <= R[x]; i++)
      |                       ^~~~
      |                       int
0_0_38955038_391.cpp:27:34: error: expected ';' before 'i'
   27 |         for (register tint i = l; i <= R[x]; i++)
      |                                  ^~
      |                                  ;
0_0_38955038_391.cpp:27:35: error: 'i' was not declared in this scope
   27 |         for (register tint i = l; i <= R[x]; i++)
      |                                   ^
0_0_38955038_391.cpp:32:25: error: 'cnt' was not declared in this scope; did you mean 'int'?
   32 |                         cnt++;
      |                         ^~~
      |                         int
0_0_38955038_391.cpp:36:26: error: 'cnt' was not declared in this scope; did you mean 'int'?
   36 |                 if (d >= cnt + 1 && v == 0) res++;
      |                          ^~~
      |                          int


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 14:21:48, Gzip enabled