记录详情

Compile Error

/in/foo.cc: In function 'void read(int&)':
/in/foo.cc:13:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while ((c = getchar()) < '0' || c > '9'); x = c - '0';
     ^~~~~
/in/foo.cc:13:47: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
     while ((c = getchar()) < '0' || c > '9'); x = c - '0';
                                               ^
/in/foo.cc: In function 'void push_up(int)':
/in/foo.cc:23:38: error: 'max' was not declared in this scope
     Max1[id] = max(Max1[lc], Max1[rc]);
                                      ^
/in/foo.cc: In function 'int query(int, int, int, int, int, int)':
/in/foo.cc:37:79: error: 'max' was not declared in this scope
     else { return max(query(l, mid, flag, lson), query(mid + 1, r, flag, rson)); }
                                                                               ^

信息

递交者
类型
递交
题目
好奇的小明
语言
C++
递交时间
2017-08-27 16:19:01
评测时间
2017-08-27 16:19:01
评测机
分数
0
总耗时
29ms
峰值内存
3.695 MiB