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_38694873_18011.cpp: In function 'll lowbit(ll)':
0_0_38694873_18011.cpp:14:1: error: named return values are no longer supported
   14 | return x & (-x);
      | ^~~~~~
0_0_38694873_18011.cpp:36:26: error: 'i' was not declared in this scope
   36 |         scanf("%lld", &x[i]);
      |                          ^
0_0_38694873_18011.cpp: At global scope:
0_0_38694873_18011.cpp:39:5: error: expected constructor, destructor, or type conversion before '(' token
   39 | sort(y + 1, y + 1 + n);
      |     ^
0_0_38694873_18011.cpp:40:1: error: 'cnt' does not name a type; did you mean 'int'?
   40 | cnt = unique(y + 1, y + 1 + n) - (y + 1);
      | ^~~
      | int
0_0_38694873_18011.cpp:41:1: error: expected unqualified-id before 'for'
   41 | for (i = 1; i <= n; i++) x[i] = lower_bound(y + 1, y + 1 + cnt, x[i]) - y;
      | ^~~
0_0_38694873_18011.cpp:41:13: error: 'i' does not name a type
   41 | for (i = 1; i <= n; i++) x[i] = lower_bound(y + 1, y + 1 + cnt, x[i]) - y;
      |             ^
0_0_38694873_18011.cpp:41:21: error: 'i' does not name a type
   41 | for (i = 1; i <= n; i++) x[i] = lower_bound(y + 1, y + 1 + cnt, x[i]) - y;
      |                     ^
0_0_38694873_18011.cpp:42:1: error: expected unqualified-id before 'for'
   42 | for (i = 1; i <= n; i++)
      | ^~~
0_0_38694873_18011.cpp:42:13: error: 'i' does not name a type
   42 | for (i = 1; i <= n; i++)
      |             ^
0_0_38694873_18011.cpp:42:21: error: 'i' does not name a type
   42 | for (i = 1; i <= n; i++)
      |                     ^
0_0_38694873_18011.cpp:43:25: error: 'k' does not name a type
   43 |         for (int k = 1; k <= i; k++)
      |                         ^
0_0_38694873_18011.cpp:43:33: error: 'k' does not name a type
   43 |         for (int k = 1; k <= i; k++)
      |                                 ^
0_0_38694873_18011.cpp:45:17: error: expected unqualified-id before 'else'
   45 |                 else dp[i][k] = getsum(x[i] - 1, k - 1) % mod;
      |                 ^~~~
0_0_38694873_18011.cpp:46:7: error: expected constructor, destructor, or type conversion before '(' token
   46 | change(x[i], dp[i][k], k);
      |       ^
0_0_38694873_18011.cpp:47:1: error: expected unqualified-id before 'if'
   47 | if (k >= m && k <= m) ans = (ans + dp[i][k]) % mod;
      | ^~
0_0_38694873_18011.cpp:52:7: error: expected constructor, destructor, or type conversion before '(' token
   52 | printf("Case %c%d%c %lld\n", s, t, p, ans);
      |       ^
0_0_38694873_18011.cpp:54:1: error: expected unqualified-id before 'return'
   54 | return 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-11-16 17:12:32, Gzip enabled