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_39098063_23162.cpp:3:9: error: 'iostream' was not declared in this scope
    3 | include<iostream>
      |         ^~~~~~~~
0_0_39098063_23162.cpp:3:9: error: 'iostream' was not declared in this scope
0_0_39098063_23162.cpp:3:9: error: 'iostream' was not declared in this scope
0_0_39098063_23162.cpp:3:9: error: 'iostream' was not declared in this scope
0_0_39098063_23162.cpp:3:9: error: 'iostream' was not declared in this scope
0_0_39098063_23162.cpp:3:9: error: 'iostream' was not declared in this scope
0_0_39098063_23162.cpp:3:9: error: 'iostream' was not declared in this scope
0_0_39098063_23162.cpp:3:9: error: 'iostream' was not declared in this scope
0_0_39098063_23162.cpp:3:9: error: 'iostream' was not declared in this scope
0_0_39098063_23162.cpp:3:1: error: 'include' does not name a type
    3 | include<iostream>
      | ^~~~~~~
0_0_39098063_23162.cpp:9:1: error: 'pair' does not name a type
    9 | pair<int,int> st[N];
      | ^~~~
0_0_39098063_23162.cpp: In function 'void solve()':
0_0_39098063_23162.cpp:18:1: error: 'cin' was not declared in this scope
   18 | cin >> n;
      | ^~~
0_0_39098063_23162.cpp:34:23: error: 'gt' was not declared in this scope
   34 |                 if((c>>k)&1){
      |                       ^~
0_0_39098063_23162.cpp:34:25: error: expected ')' before ';' token
   34 |                 if((c>>k)&1){
      |                    ~    ^
      |                         )
0_0_39098063_23162.cpp:34:25: error: expected ')' before ';' token
   34 |                 if((c>>k)&1){
      |                   ~     ^
      |                         )
0_0_39098063_23162.cpp:34:27: error: 'gt' was not declared in this scope
   34 |                 if((c>>k)&1){
      |                           ^~
0_0_39098063_23162.cpp:34:31: error: expected ';' before ')' token
   34 |                 if((c>>k)&1){
      |                               ^
      |                               ;
0_0_39098063_23162.cpp:34:38: error: expected ';' before ')' token
   34 |                 if((c>>k)&1){
      |                                      ^
      |                                      ;
0_0_39098063_23162.cpp:37:17: error: 'else' without a previous 'if'
   37 |                 else{
      |                 ^~~~
0_0_39098063_23162.cpp:45:15: error: 'gt' was not declared in this scope
   45 | for(int i=n;i>=0;i--){
      |               ^~
0_0_39098063_23162.cpp:45:18: error: expected primary-expression before '=' token
   45 | for(int i=n;i>=0;i--){
      |                  ^
0_0_39098063_23162.cpp:45:20: error: expected ')' before ';' token
   45 | for(int i=n;i>=0;i--){
      |    ~               ^
      |                    )
0_0_39098063_23162.cpp:45:21: error: 'i' was not declared in this scope
   45 | for(int i=n;i>=0;i--){
      |                     ^
0_0_39098063_23162.cpp:59:15: error: 'lt' was not declared in this scope; did you mean 'l'?
   59 | for(int i=1;i<=n;i++){
      |               ^~
      |               l
0_0_39098063_23162.cpp:59:18: error: expected primary-expression before '=' token
   59 | for(int i=1;i<=n;i++){
      |                  ^
0_0_39098063_23162.cpp:59:20: error: expected ')' before ';' token
   59 | for(int i=1;i<=n;i++){
      |    ~               ^
      |                    )
0_0_39098063_23162.cpp:113:9: error: 'b1' cannot be used as a function
  113 | ans+=(b1(b4+1))(1ll<<j)a[i];
      |       ~~^~~~~~
0_0_39098063_23162.cpp:114:15: error: expression cannot be used as a function
  114 | ans+=(b2*(b3))(1ll<<j)*a[i];
      |      ~~~~~~~~~^~~~~~~~
0_0_39098063_23162.cpp:119:1: error: 'cout' was not declared in this scope
  119 | cout<<ans<<'\n';
      | ^~~~
0_0_39098063_23162.cpp: In function 'int main()':
0_0_39098063_23162.cpp:122:1: error: 'cin' was not declared in this scope
  122 | cin.tie(0);cout.tie(0);ios::sync_with_stdio(0);
      | ^~~
0_0_39098063_23162.cpp:122:12: error: 'cout' was not declared in this scope
  122 | cin.tie(0);cout.tie(0);ios::sync_with_stdio(0);
      |            ^~~~
0_0_39098063_23162.cpp:122:24: error: 'ios' has not been declared
  122 | cin.tie(0);cout.tie(0);ios::sync_with_stdio(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-13 12:28:13, Gzip enabled