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_29030612_26018.cpp:99:9: error: conflicting declaration 'int a'
 int s,t,a,b;
         ^
0_0_29030612_26018.cpp:11:5: note: previous declaration as 'int a [100007]'
 int a[maxn];
     ^
0_0_29030612_26018.cpp: In function 'int main()':
0_0_29030612_26018.cpp:133:19: error: cannot bind 'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' lvalue to 'std::basic_istream<char>&&'
             cin>>s>>t>>a>>b;
                   ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
                 from 0_0_29030612_26018.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:872:5: note: initializing argument 1 of 'std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = int [100007]]'
     operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
     ^
0_0_29030612_26018.cpp:134:39: error: invalid conversion from 'int*' to 'int' [-fpermissive]
             cout<<querysum(s,t,a,b,1,n)<<" ";
                                       ^
0_0_29030612_26018.cpp:88:4: note: initializing argument 3 of 'long long int querysum(int, int, int, int, int, int)'
 ll querysum(int x,int y,int a,int b,int L,int R){
    ^


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-12-05 07:48:05, Gzip enabled