| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 68832 | 杨珞烯 | 04四位数移位 | C++ | Compile Error | 0 MS | 0 KB | 238 | 2024-03-25 22:34:55 |
sing namespace std; int main(){ #include <iostream> uint a,b,c,d,n; cin >> a,b,c,d; n = a,b,c,d; a = n / 1000; b = n / 100 % 10; c = n / 10 % 10; d = n / 1 % 10; cout << b << c << d << a; return 0; }
Main.cc:1:1: error: 'sing' does not name a type
sing namespace std;
^
In file included from /usr/include/c++/5/iostream:38:0,
from Main.cc:3:
/usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h: In function 'int main()':
/usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:194:1: error: 'namespace' definition is not allowed here
namespace std
^
/usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:216:1: error: 'namespace' definition is not allowed here
namespace std
^
/usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:220:1: error: 'namespace' definition is not allowed here
namespace __gnu_cxx
^
/usr/include/c++/5/bits/memoryfwd.h:50:15: error: expected '=' before '__attribute__'
namespace std _GLIBCXX_VISIBILITY(default)
^
/usr/include/c++/5/bits/memoryfwd.h:50:15: error: expected identifier before '__attribute__'
/usr/include/c++/5/bits/memoryfwd.h:50:15: error: expected ';' before '__attribute__'
/usr/include/c++/5/bits/memoryfwd.h:50:15: error: expected primary-expression before '__attribute__'
/usr/include/c++/5/bits/stringfwd.h:42:15: error: expected '=' before '__attribute__'
namespace std _GLIBCXX_VISIBILITY(default)
^
/usr/include/c++/5/bits/stringfwd.h:42:15: error: expected identifier before '__attribute__'
/usr/include/c++/5/bits/stringfwd.h:42:15: error: expected ';' before '__attribute__'
/usr/include/c++/5/bits/stringfwd.h:42:15: error: expected primary-expression before '__attribute__'
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:482,
from /usr/include/c++/5/iostream:38,
from Main.cc:3:
/usr/include/wchar.h:132:1: error: expected unqualified-id before string constant
__BEGIN_DECLS
^
In file included from /usr/include/c++/5/ios:39:0,
from /usr/include/c++/5/ostream:38,
from /usr/include/c++/5/iostream:39,
from Main.cc:3:
/usr/include/c++/5/exception:35:37: error: expected '}' before end of line
/usr/include/c++/5/exception: At global scope:
/usr/include/c++/5/exception:35:37: error: expected declaration before end of line