Compile Error

/in/foo.cc:8:16: error: stray '\357' in program
     scranf("%c",&a) ;
                ^
/in/foo.cc:8:17: error: stray '\274' in program
     scranf("%c",&a) ;
                 ^
/in/foo.cc:8:18: error: stray '\214' in program
     scranf("%c",&a) ;
                  ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:8:19: error: no match for 'operator&' (operand types are 'const char [3]' and 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}')
     scranf("%c",&a) ;
            ~~~~~~~^~
In file included from /usr/include/c++/6/ios:42:0,
                 from /usr/include/c++/6/ostream:38,
                 from /usr/include/c++/6/iostream:39,
                 from /in/foo.cc:1:
/usr/include/c++/6/bits/ios_base.h:83:3: note: candidate: constexpr std::_Ios_Fmtflags std::operator&(std::_Ios_Fmtflags, std::_Ios_Fmtflags)
   operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b)
   ^~~~~~~~
/usr/include/c++/6/bits/ios_base.h:83:3: note:   no known conversion for argument 1 from 'const char [3]' to 'std::_Ios_Fmtflags'
/usr/include/c++/6/bits/ios_base.h:125:3: note: candidate: constexpr std::_Ios_Openmode std::operator&(std::_Ios_Openmode, std::_Ios_Openmode)
   operator&(_Ios_Openmode __a, _Ios_Openmode __b)
   ^~~~~~~~
/usr/include/c++/6/bits/ios_base.h:125:3: note:   no known conversion for argument 1 from 'const char [3]' to 'std::_Ios_Openmode'
/usr/include/c++/6/bits/ios_base.h:165:3: note: candidate: constexpr std::_Ios_Iostate std::operator&(std::_Ios_Iostate, std::_Ios_Iostate)
   operator&(_Ios_Iostate __a, _Ios_Iostate __b)
   ^~~~~~~~
/usr/include/c++/6/bits/ios_base.h:165:3: note:   no known conversion for argument 1 from 'const char [3]' to 'std::_Ios_Iostate'
/in/foo.cc:8:21: error: 'scranf' was not declared in this scope
     scranf("%c",&a) ;
                     ^

信息

递交者
类型
递交
题目
最美丽老师
语言
C++
递交时间
2018-01-21 21:34:21
评测时间
2018-01-21 21:34:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes