F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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
  }
  ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-15 07:04:36, Gzip enabled