记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:27: error: a function-definition is not allowed here before '{' token
    8 |         int T(int m,int d){
      |                           ^
/in/foo.cc:16:21: warning: left operand of comma operator has no effect [-Wunused-value]
   16 |         int total1=(m1,d1);
      |                     ^~
/in/foo.cc:17:21: warning: left operand of comma operator has no effect [-Wunused-value]
   17 |         int total2=(m2,d2);
      |                     ^~
/in/foo.cc:6:13: warning: unused variable 'a' [-Wunused-variable]
    6 |         int a[12]={31,28,31,30,31,30,31,31,30,31,30,31};
      |             ^

信息

递交者
类型
递交
题目
P1083 xf1-6计算日期
比赛
2025年春 南师大《程序设计与竞赛》作业赛第四场
语言
C++
递交时间
2025-03-29 19:43:21
评测时间
2025-03-29 19:43:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes