/ Vijos /

记录详情

Compile Error

foo.cc: In function 'void dts::main()':
foo.cc:20:9: error: 'cin' was not declared in this scope
         cin<<n<<endl;
         ^~~
foo.cc:20:9: note: suggested alternative: 'sin'
         cin<<n<<endl;
         ^~~
         sin
foo.cc:20:17: error: 'endl' was not declared in this scope
         cin<<n<<endl;
                 ^~~~
foo.cc:20:17: note: suggested alternative: 'ynl'
         cin<<n<<endl;
                 ^~~~
                 ynl
foo.cc:23:9: error: 'cout' was not declared in this scope
         cout<<n<<endl;
         ^~~~
foo.cc:23:9: note: suggested alternative: 'cosl'
         cout<<n<<endl;
         ^~~~
         cosl
foo.cc:22:27: warning: unused variable 'b' [-Wunused-variable]
         int a=random(n+1),b=n-a;
                           ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P2037 melborP B + A
语言
C++
递交时间
2021-08-23 20:29:30
评测时间
2021-08-23 20:29:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes