/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:59:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    if(op!='F' && op!='E')op=getchar();getchar();
    ^~
/in/foo.cc:59:39: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
    if(op!='F' && op!='E')op=getchar();getchar();
                                       ^~~~~~~
/in/foo.cc:67:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
     while(bianliang[numb]<'a' || bianliang[numb]>'z')bianliang[numb]=getchar();getchar();
     ^~~~~
/in/foo.cc:67:80: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
     while(bianliang[numb]<'a' || bianliang[numb]>'z')bianliang[numb]=getchar();getchar();
                                                                                ^~~~~~~
/in/foo.cc:112:10: error: reference to 'end' is ambiguous
   }cout<<end;
          ^~~
/in/foo.cc:21:5: note: candidates are: int end
 int end,gf,cnt,now,num1,num2,numb,sum[1001],fa[101],fir[1001],ans;
     ^~~
In file included from /usr/include/c++/6/string:51:0,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/range_access.h:97:5: note:                 template<class _Tp, long unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
     end(_Tp (&__arr)[_Nm])
     ^~~
/usr/include/c++/6/bits/range_access.h:78:5: note:                 template<class _Container> decltype (__cont.end()) std::end(const _Container&)
     end(const _Container& __cont) -> decltype(__cont.end())
     ^~~
/usr/include/c++/6/bits/range_access.h:68:5: note:                 template<class _Container> decltype (__cont.end()) std::end(_Container&)
     end(_Container& __cont) -> decltype(__cont.end())
     ^~~
In file included from /usr/include/c++/6/bits/range_access.h:36:0,
                 from /usr/include/c++/6/string:51,
                 from /usr/include/c++/6/bits/locale_classes.h:40,
                 from /usr/include/c++/6/bits/ios_base.h:41,
                 from /usr/include/c++/6/ios:42,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/6/initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^~~

信息

递交者
类型
递交
题目
P2029 时间复杂度
语言
C++
递交时间
2017-11-16 12:09:23
评测时间
2017-11-16 12:09:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes