/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include <iostream>
 ^~~~~~~
foo.cpp: In function 'int main()':
foo.cpp:24:1: error: 'cin' was not declared in this scope
 cin>>n;
 ^~~
foo.cpp:27:11: error: 'sort' was not declared in this scope
 sort(p,p+n);
           ^
foo.cpp:29:32: error: 'abs' was not declared in this scope
 count1+=abs(p[i].y-p[(n+1)/2].y);
                                ^
foo.cpp:31:28: error: 'abs' was not declared in this scope
 count2+=abs(p[i].y-p[n/2].y);
                            ^
foo.cpp:33:1: error: 'cout' was not declared in this scope
 cout<<count2;
 ^~~~
foo.cpp:35:1: error: 'cout' was not declared in this scope
 cout<<count1;
 ^~~~

信息

递交者
类型
递交
题目
P1691 输油管道问题
语言
C++
递交时间
2017-02-19 20:57:58
评测时间
2017-02-19 20:57:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes