/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int uni(int, int)':
foo.cpp:26:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
foo.cpp: In function 'int main()':
foo.cpp:31:15: error: 'scanf' was not declared in this scope
  scanf("%f",&s);
               ^
foo.cpp:47:32: error: 'printf' was not declared in this scope
  if(ans>s)printf("impossible/n");
                                ^
foo.cpp:48:44: error: 'printf' was not declared in this scope
  else printf("Need %.2f miles of cable",ans);
                                            ^

信息

递交者
类型
递交
题目
P1045 Kerry 的电缆网络
语言
C++
递交时间
2016-05-22 19:42:51
评测时间
2016-05-22 19:42:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes