记录详情

Accepted

/in/foo.cc: In function 'int main()':
/in/foo.cc:24:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (s1[0]!='-') s1='+'+s1; if (s2[0]!='-') s2='+'+s2;
  ^~
/in/foo.cc:24:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  if (s1[0]!='-') s1='+'+s1; if (s2[0]!='-') s2='+'+s2;
                             ^~
/in/foo.cc:26:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while(k<s1.size())
        ~^~~~~~~~~~
/in/foo.cc:31:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    while(s1[k]!='+'&&s1[k]!='-'&&k<s1.size()) 
                                  ~^~~~~~~~~~
/in/foo.cc:38:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while(k<s2.size())
        ~^~~~~~~~~~
/in/foo.cc:43:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    while(s2[k]!='+'&&s2[k]!='-'&&k<s2.size()) 
                                  ~^~~~~~~~~~
/in/foo.cc:54:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(j=1;j<ss[i].size()-1;j++) t=t*10+(ss[i][j]-48);
            ~^~~~~~~~~~~~~~~
/in/foo.cc:61:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(j=1;j<ss[i].size();j++) t=t*10+(ss[i][j]-48);
            ~^~~~~~~~~~~~~
/in/foo.cc:17:8: warning: unused variable 'n' [-Wunused-variable]
  int i,n,t,j,k,x=0,m=0,l=0; string s,s1,s2;
        ^
# 状态 耗时 内存占用
#1 Accepted 2ms 332.0 KiB
#2 Accepted 3ms 372.0 KiB
#3 Accepted 3ms 372.0 KiB
#4 Accepted 3ms 364.0 KiB
#5 Accepted 3ms 368.0 KiB
#6 Accepted 2ms 336.0 KiB
#7 Accepted 2ms 368.0 KiB
#8 Accepted 2ms 376.0 KiB

信息

递交者
类型
递交
题目
4.方程式
题目数据
下载
语言
C++
递交时间
2018-07-14 15:46:08
评测时间
2018-07-14 15:46:08
评测机
分数
80
总耗时
25ms
峰值内存
376.0 KiB