/ Vijos /

记录详情

Compile Error

/in/foo.cc:2:50: error: expected initializer before 'cin'
 using namespace std;unsigned int n,a,b;int main()cin>>n;a=(n>>16);b=(n<<16);cout<<(a|b);return 0;}
                                                  ^~~
/in/foo.cc:2:57: error: 'a' does not name a type
 using namespace std;unsigned int n,a,b;int main()cin>>n;a=(n>>16);b=(n<<16);cout<<(a|b);return 0;}
                                                         ^
/in/foo.cc:2:67: error: 'b' does not name a type
 using namespace std;unsigned int n,a,b;int main()cin>>n;a=(n>>16);b=(n<<16);cout<<(a|b);return 0;}
                                                                   ^
/in/foo.cc:2:77: error: 'cout' does not name a type
 using namespace std;unsigned int n,a,b;int main()cin>>n;a=(n>>16);b=(n<<16);cout<<(a|b);return 0;}
                                                                             ^~~~
/in/foo.cc:2:89: error: expected unqualified-id before 'return'
 using namespace std;unsigned int n,a,b;int main()cin>>n;a=(n>>16);b=(n<<16);cout<<(a|b);return 0;}
                                                                                         ^~~~~~
/in/foo.cc:2:98: error: expected declaration before '}' token
 using namespace std;unsigned int n,a,b;int main()cin>>n;a=(n>>16);b=(n<<16);cout<<(a|b);return 0;}
                                                                                                  ^

信息

递交者
类型
递交
题目
P1201 高低位交换
语言
C++
递交时间
2017-11-05 20:11:56
评测时间
2017-11-05 20:11:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes