记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin>>a>>k;
      |         ^~~
      |         std::cin
In file included from stdc++.h:75:
/nix/store/1x1q5sqa0ilbi8fz7aayk02pjy5g7jhh-gcc-12.3.0/include/c++/12.3.0/iostream:60:18: note: 'std::cin' declared here
   60 |   extern istream cin;           /// Linked to standard input
      |                  ^~~
foo.cc:8:19: warning: unknown conversion type character 'k' in format [-Wformat=]
    8 |         printf("%.klf",a);
      |                   ^
foo.cc:8:16: warning: too many arguments for format [-Wformat-extra-args]
    8 |         printf("%.klf",a);
      |                ^~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1499 Problem A. 四舍五入
语言
C++
递交时间
2023-10-09 19:59:28
评测时间
2023-10-09 19:59:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes