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_34183871_14295.cpp:4:22: error: expected initializer before 'LL'
 typedef long long LL LL;
                      ^
0_0_34183871_14295.cpp:6:1: error: 'LL' does not name a type
 LL n = 0, q = 0;
 ^
0_0_34183871_14295.cpp:8:1: error: 'LL' does not name a type
 LL lowbit(LL i)
 ^
0_0_34183871_14295.cpp:13:1: error: 'LL' does not name a type
 LL func1(LL num)
 ^
0_0_34183871_14295.cpp:21:1: error: 'LL' does not name a type
 LL func2(LL num)
 ^
0_0_34183871_14295.cpp: In function 'int main()':
0_0_34183871_14295.cpp:33:16: error: 'n' was not declared in this scope
  while (cin >> n >> q) {
                ^
0_0_34183871_14295.cpp:33:21: error: 'q' was not declared in this scope
  while (cin >> n >> q) {
                     ^
0_0_34183871_14295.cpp:34:3: error: 'LL' was not declared in this scope
   LL op = 0;
   ^
0_0_34183871_14295.cpp:35:11: error: expected ';' before 'i'
   for (LL i = 0; i < q; ++i) {
           ^
0_0_34183871_14295.cpp:35:18: error: 'i' was not declared in this scope
   for (LL i = 0; i < q; ++i) {
                  ^
0_0_34183871_14295.cpp:36:11: error: 'op' was not declared in this scope
    cin >> op;
           ^
0_0_34183871_14295.cpp:38:8: error: expected ';' before 'L'
     LL L, R;
        ^
0_0_34183871_14295.cpp:39:12: error: 'L' was not declared in this scope
     cin >> L >> R;
            ^
0_0_34183871_14295.cpp:39:17: error: 'R' was not declared in this scope
     cin >> L >> R;
                 ^
0_0_34183871_14295.cpp:40:20: error: 'func1' was not declared in this scope
     cout << func1(R) - func1(L - 1) << endl;
                    ^
0_0_34183871_14295.cpp:43:8: error: expected ';' before 'num'
     LL num;
        ^
0_0_34183871_14295.cpp:44:12: error: 'num' was not declared in this scope
     cin >> num;
            ^
0_0_34183871_14295.cpp:45:22: error: 'func2' was not declared in this scope
     cout << func2(num) << endl;
                      ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-17 07:49:36, Gzip enabled