/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int win()':
/in/foo.cc:43:6: warning: unused variable 'i' [-Wunused-variable]
  int i,j,m;
      ^
/in/foo.cc:43:8: warning: unused variable 'j' [-Wunused-variable]
  int i,j,m;
        ^
/in/foo.cc: In function 'int judge()':
/in/foo.cc:52:6: warning: unused variable 'i' [-Wunused-variable]
  int i,j;
      ^
/in/foo.cc:52:8: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
/in/foo.cc:54:6: warning: unused variable 'w' [-Wunused-variable]
  int w=8;
      ^
/in/foo.cc: At global scope:
/in/foo.cc:65:18: error: 'clock' does not name a type
 void print(const clock tp,int x)
                  ^~~~~
/in/foo.cc: In function 'void print(int, int)':
/in/foo.cc:69:40: error: request for member 'map' in 'tp', which is of non-class type 'const int'
  for(int i=1;i<=9;i++) printf("%d ",tp.map[i]);
                                        ^~~
/in/foo.cc:70:42: error: request for member 'father' in 'tp', which is of non-class type 'const int'
  printf("\nfather=%d step=%d no=%d\n",tp.father,tp.step,tp.no);
                                          ^~~~~~
/in/foo.cc:70:52: error: request for member 'step' in 'tp', which is of non-class type 'const int'
  printf("\nfather=%d step=%d no=%d\n",tp.father,tp.step,tp.no);
                                                    ^~~~
/in/foo.cc:70:60: error: request for member 'no' in 'tp', which is of non-class type 'const int'
  printf("\nfather=%d step=%d no=%d\n",tp.father,tp.step,tp.no);
                                                            ^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:121:8: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^

信息

递交者
类型
递交
题目
P1016 北京2008的挂钟
语言
C++
递交时间
2018-08-02 21:58:49
评测时间
2018-08-02 21:58:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes