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_39098066_15149.cpp: In function 'void solve()':
0_0_39098066_15149.cpp:34:23: error: 'gt' was not declared in this scope; did you mean 'st'?
   34 |                 if((c>>k)&1){
      |                       ^~
      |                       st
0_0_39098066_15149.cpp:34:25: error: expected ')' before ';' token
   34 |                 if((c>>k)&1){
      |                    ~    ^
      |                         )
0_0_39098066_15149.cpp:34:25: error: expected ')' before ';' token
   34 |                 if((c>>k)&1){
      |                   ~     ^
      |                         )
0_0_39098066_15149.cpp:34:27: error: 'gt' was not declared in this scope; did you mean 'st'?
   34 |                 if((c>>k)&1){
      |                           ^~
      |                           st
0_0_39098066_15149.cpp:34:31: error: expected ';' before ')' token
   34 |                 if((c>>k)&1){
      |                               ^
      |                               ;
0_0_39098066_15149.cpp:34:38: error: expected ';' before ')' token
   34 |                 if((c>>k)&1){
      |                                      ^
      |                                      ;
0_0_39098066_15149.cpp:37:17: error: 'else' without a previous 'if'
   37 |                 else{
      |                 ^~~~
0_0_39098066_15149.cpp:45:15: error: 'gt' was not declared in this scope; did you mean 'st'?
   45 | for(int i=n;i>=0;i--){
      |               ^~
      |               st
0_0_39098066_15149.cpp:45:18: error: expected primary-expression before '=' token
   45 | for(int i=n;i>=0;i--){
      |                  ^
0_0_39098066_15149.cpp:45:20: error: expected ')' before ';' token
   45 | for(int i=n;i>=0;i--){
      |    ~               ^
      |                    )
0_0_39098066_15149.cpp:45:21: error: 'i' was not declared in this scope
   45 | for(int i=n;i>=0;i--){
      |                     ^
0_0_39098066_15149.cpp:59:15: error: 'lt' was not declared in this scope; did you mean 'st'?
   59 | for(int i=1;i<=n;i++){
      |               ^~
      |               st
0_0_39098066_15149.cpp:59:18: error: expected primary-expression before '=' token
   59 | for(int i=1;i<=n;i++){
      |                  ^
0_0_39098066_15149.cpp:59:20: error: expected ')' before ';' token
   59 | for(int i=1;i<=n;i++){
      |    ~               ^
      |                    )
0_0_39098066_15149.cpp:113:9: error: 'b1' cannot be used as a function
  113 | ans+=(b1(b4+1))(1ll<<j)a[i];
      |       ~~^~~~~~
0_0_39098066_15149.cpp:114:15: error: expression cannot be used as a function
  114 | ans+=(b2*(b3))(1ll<<j)*a[i];
      |      ~~~~~~~~~^~~~~~~~


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 04:19:58, Gzip enabled