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_26178723_27335.cpp: In function 'int main()':
0_0_26178723_27335.cpp:16:21: error: invalid operands of types 'int [65]' and 'int' to binary 'operator<<'
   ll all = a<<(k+1)-1;
                     ^
0_0_26178723_27335.cpp:21:10: error: expected initializer before '-' token
   ll res - (all - n)/2;
          ^
0_0_26178723_27335.cpp:24:7: error: 'res' was not declared in this scope
    if(res&1)cout<<tmp<<" -"<<endl;
       ^
0_0_26178723_27335.cpp:25:20: error: unable to find string literal operator 'operator""endl'
    else cout<<tmp<<" +"endl;
                    ^
0_0_26178723_27335.cpp:26:4: error: 'res' was not declared in this scope
    res = res>>1;
    ^
0_0_26178723_27335.cpp:29:23: error: unable to find string literal operator 'operator""endl'
   if(flg)cout<<tmp+1<<" +"endl;
                       ^
0_0_26178723_27335.cpp:30:19: error: unable to find string literal operator 'operator""endl'
   else cout<<tmp<<" +"endl;
                   ^


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-29 16:38:29, Gzip enabled