/ Vijos /

记录详情

Compile Error

/in/foo.cc:1:0: warning: ignoring #pragma comment  [-Wunknown-pragmas]
 #pragma comment(linker, "/STACK:102400000,102400000")
 
/in/foo.cc: In function 'void solve(int, int)':
/in/foo.cc:47:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i=0;i<inc[x].size();i++){
               ~^~~~~~~~~~~~~~
/in/foo.cc:48:6: error: 'v' was not declared in this scope
  if (v==0)
      ^
/in/foo.cc:49:18: warning: division by zero [-Wdiv-by-zero]
   printf("%d\n",1/0);
                 ~^~
/in/foo.cc:48:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (v==0)
  ^~
/in/foo.cc:50:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   int v=inc[x][i],d=1;
   ^~~
/in/foo.cc:55:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i=0;i<dec[x].size();i++){
               ~^~~~~~~~~~~~~~
/in/foo.cc:56:6: error: 'v' was not declared in this scope
  if (v==0)
      ^
/in/foo.cc:57:18: warning: division by zero [-Wdiv-by-zero]
   printf("%d\n",1/0);
                 ~^~
/in/foo.cc:56:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  if (v==0)
  ^~
/in/foo.cc:58:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
   int v=dec[x][i],d=1;
   ^~~
/in/foo.cc:65:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i=0;i<inc[x].size();i++){
               ~^~~~~~~~~~~~~~
/in/foo.cc:71:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for (int i=0;i<dec[x].size();i++){
               ~^~~~~~~~~~~~~~

信息

递交者
类型
递交
题目
P2004 天天爱跑步
语言
C++
递交时间
2018-07-06 16:28:26
评测时间
2018-07-06 16:28:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes