/ Vijos /

记录详情

Accepted

/in/foo.cc: In function 'void solve()':
/in/foo.cc:15:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(i=1;i<=N;i++)
     ^~~
/in/foo.cc:17:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
  for(i=1;i<N;i++)
  ^~~
/in/foo.cc:17:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
/in/foo.cc:19:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   a[N].second=a[1].first;
   ^
/in/foo.cc:32:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  for(i=1;i<=N;i++)
  ^~~
/in/foo.cc:34:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
   cout<<m<<endl;
   ^~~~
/in/foo.cc:13:9: warning: unused variable 'n' [-Wunused-variable]
     int n,N,i,j,x,k,l;
         ^
/in/foo.cc:13:17: warning: unused variable 'x' [-Wunused-variable]
     int n,N,i,j,x,k,l;
                 ^
/in/foo.cc:13:21: warning: unused variable 'l' [-Wunused-variable]
     int n,N,i,j,x,k,l;
                     ^
# 状态 耗时 内存占用
#1 Accepted 1ms 452.0 KiB
#2 Accepted 1ms 460.0 KiB
#3 Accepted 1ms 452.0 KiB
#4 Accepted 1ms 460.0 KiB
#5 Accepted 1ms 580.0 KiB
#6 Accepted 2ms 592.0 KiB
#7 Accepted 2ms 580.0 KiB
#8 Accepted 2ms 716.0 KiB
#9 Accepted 2ms 708.0 KiB
#10 Accepted 1ms 360.0 KiB

信息

递交者
类型
递交
题目
P1312 能量项链
语言
C++
递交时间
2024-11-05 17:17:18
评测时间
2024-11-05 17:17:18
评测机
分数
100
总耗时
21ms
峰值内存
716.0 KiB