0_0_25718944_31310.cpp:1:3: error: 'v' does not name a type
v.clear();
^
0_0_25718944_31310.cpp:2:3: error: 'v' does not name a type
v.push_back(1);
^
0_0_25718944_31310.cpp:3:3: error: 'v' does not name a type
v.push_back(1);
^
0_0_25718944_31310.cpp:4:3: error: expected unqualified-id before 'if'
if (n <= 2) {
^
0_0_25718944_31310.cpp:8:3: error: expected unqualified-id before 'for'
for (int i = 0; i==0||(a1!=1||a2!=1); i++) {
^
0_0_25718944_31310.cpp:8:19: error: 'i' does not name a type
for (int i = 0; i==0||(a1!=1||a2!=1); i++) {
^
0_0_25718944_31310.cpp:8:41: error: 'i' does not name a type
for (int i = 0; i==0||(a1!=1||a2!=1); i++) {
^
0_0_25718944_31310.cpp:15:3: error: expected unqualified-id before 'if'
if (v.size() > 3) v.pop_back();
^
0_0_25718944_31310.cpp:16:3: error: 'v' does not name a type
v.pop_back();
^
0_0_25718944_31310.cpp:19:3: error: 'cout' does not name a type
cout << v[(n-1)%v.size()] << endl;
^
0_0_25718944_31310.cpp:21:2: error: expected declaration before '}' token
}
^
|