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_39720493_13993.cpp: In function 'int main()':
0_0_39720493_13993.cpp:72:24: error: invalid conversion from 'int' to 'tree*' [-fpermissive]
   72 |                 modify(t, l, r, 1);
      |                        ^
      |                        |
      |                        int
0_0_39720493_13993.cpp:44:19: note:   initializing argument 1 of 'void modify(tree*, int, int, int, int)'
   44 | void modify(tree* t, int l, int r, int c, int x = 1) {
      |             ~~~~~~^
0_0_39720493_13993.cpp:77:26: error: invalid types 'int[int]' for array subscript
   77 |                     if (t[1].fmax >= l) {
      |                          ^
0_0_39720493_13993.cpp:78:42: error: invalid conversion from 'int' to 'tree*' [-fpermissive]
   78 |                         int u = findleft(t, l);
      |                                          ^
      |                                          |
      |                                          int
0_0_39720493_13993.cpp:33:20: note:   initializing argument 1 of 'int findleft(tree*, int, int)'
   33 | int findleft(tree* t, int c, int x = 1) {
      |              ~~~~~~^
0_0_39720493_13993.cpp:79:32: error: invalid conversion from 'int' to 'tree*' [-fpermissive]
   79 |                         modify(t, u, u + l - 1, 0);
      |                                ^
      |                                |
      |                                int
0_0_39720493_13993.cpp:44:19: note:   initializing argument 1 of 'void modify(tree*, int, int, int, int)'
   44 | void modify(tree* t, int l, int r, int c, int x = 1) {
      |             ~~~~~~^
0_0_39720493_13993.cpp:85:26: error: invalid types 'int[int]' for array subscript
   85 |                     if (t[1].fmax >= l) {
      |                          ^
0_0_39720493_13993.cpp:86:42: error: invalid conversion from 'int' to 'tree*' [-fpermissive]
   86 |                         int u = findleft(t, l);
      |                                          ^
      |                                          |
      |                                          int
0_0_39720493_13993.cpp:33:20: note:   initializing argument 1 of 'int findleft(tree*, int, int)'
   33 | int findleft(tree* t, int c, int x = 1) {
      |              ~~~~~~^
0_0_39720493_13993.cpp:87:32: error: invalid conversion from 'int' to 'tree*' [-fpermissive]
   87 |                         modify(t, u, u + l - 1, 0);
      |                                ^
      |                                |
      |                                int
0_0_39720493_13993.cpp:44:19: note:   initializing argument 1 of 'void modify(tree*, int, int, int, int)'
   44 | void modify(tree* t, int l, int r, int c, int x = 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-29 09:56:16, Gzip enabled