Accepted

foo.cc:3:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    3 | main()
      | ^~~~
foo.cc: In function ‘int main()’:
foo.cc:4:15: warning: unused variable ‘y’ [-Wunused-variable]
    4 | {       int n,y,a;
      |               ^
foo.cc:11:18: warning: ‘b’ may be used uninitialized [-Wmaybe-uninitialized]
   11 |                 b++;
      |                 ~^~
foo.cc:5:16: note: ‘b’ was declared here
    5 |         double b,c,d,e;
      |                ^
foo.cc:13:18: warning: ‘c’ may be used uninitialized [-Wmaybe-uninitialized]
   13 |                 c++;
      |                 ~^~
foo.cc:5:18: note: ‘c’ was declared here
    5 |         double b,c,d,e;
      |                  ^
foo.cc:15:18: warning: ‘d’ may be used uninitialized [-Wmaybe-uninitialized]
   15 |                 d++;
      |                 ~^~
foo.cc:5:20: note: ‘d’ was declared here
    5 |         double b,c,d,e;
      |                    ^
foo.cc:17:18: warning: ‘e’ may be used uninitialized [-Wmaybe-uninitialized]
   17 |                 e++;
      |                 ~^~
foo.cc:5:22: note: ‘e’ was declared here
    5 |         double b,c,d,e;
      |                      ^
# 状态 耗时 内存占用
#1 Accepted 3ms 536.0 KiB
#2 Accepted 3ms 536.0 KiB
#3 Accepted 3ms 764.0 KiB
#4 Accepted 2ms 764.0 KiB
#5 Accepted 2ms 320.0 KiB

信息

递交者
类型
递交
题目
P1107 1.6.5年龄与疾病
比赛
春季班初级4.13
语言
C++
递交时间
2024-04-13 14:06:35
评测时间
2024-04-13 14:06:35
评测机
分数
100
总耗时
14ms
峰值内存
764.0 KiB