/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:28:15: error: expected unqualified-id before 'this'
     int i, k, this, adjacent, step, status, target;
               ^
foo.cpp:33:5: error: 'status' was not declared in this scope
     status = 0;
     ^
foo.cpp:43:5: error: 'target' was not declared in this scope
     target = 0;
     ^
foo.cpp:54:9: error: 'step' was not declared in this scope
         step = queue[head][STEP];
         ^
foo.cpp:58:13: error: invalid use of 'this' in non-member function
             this = get(status, i);
             ^
foo.cpp:60:17: error: 'adjacent' was not declared in this scope
                 adjacent = get(status, i-1);
                 ^
foo.cpp:63:30: error: invalid use of 'this' in non-member function
                 set(&k, i-1, this);
                              ^
foo.cpp:67:17: error: 'adjacent' was not declared in this scope
                 adjacent = get(status, i+1);
                 ^
foo.cpp:70:30: error: invalid use of 'this' in non-member function
                 set(&k, i+1, this);
                              ^
foo.cpp:74:17: error: 'adjacent' was not declared in this scope
                 adjacent = get(status, i-4);
                 ^
foo.cpp:77:30: error: invalid use of 'this' in non-member function
                 set(&k, i-4, this);
                              ^
foo.cpp:81:17: error: 'adjacent' was not declared in this scope
                 adjacent = get(status, i+4);
                 ^
foo.cpp:84:30: error: invalid use of 'this' in non-member function
                 set(&k, i+4, this);
                              ^

信息

递交者
类型
递交
题目
P1206 CoVH之再破难关
语言
C++
递交时间
2016-04-01 10:55:27
评测时间
2016-04-01 10:55:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes