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_39568618_19203.cpp: In function 'int main()':
0_0_39568618_19203.cpp:21:24: error: '_int64' was not declared in this scope
   21 |                 vector<_int64>ans(n + 3);
      |                        ^~~~~~
0_0_39568618_19203.cpp:21:30: error: template argument 1 is invalid
   21 |                 vector<_int64>ans(n + 3);
      |                              ^
0_0_39568618_19203.cpp:21:30: error: template argument 2 is invalid
0_0_39568618_19203.cpp:22:20: error: invalid types 'int[int]' for array subscript
   22 |                 ans[0] = 0; ans[1] = 1; ans[2] = 1;
      |                    ^
0_0_39568618_19203.cpp:22:32: error: invalid types 'int[int]' for array subscript
   22 |                 ans[0] = 0; ans[1] = 1; ans[2] = 1;
      |                                ^
0_0_39568618_19203.cpp:22:44: error: invalid types 'int[int]' for array subscript
   22 |                 ans[0] = 0; ans[1] = 1; ans[2] = 1;
      |                                            ^
0_0_39568618_19203.cpp:23:41: error: request for member 'size' in 'ans', which is of non-class type 'int'
   23 |                 for (int i = 3; i < ans.size(); ++i) {
      |                                         ^~~~
0_0_39568618_19203.cpp:24:28: error: invalid types 'int[int]' for array subscript
   24 |                         ans[i] = (a * ans[i - 1] + b * ans[i - 2]) % 7;
      |                            ^
0_0_39568618_19203.cpp:24:42: error: invalid types 'int[int]' for array subscript
   24 |                         ans[i] = (a * ans[i - 1] + b * ans[i - 2]) % 7;
      |                                          ^
0_0_39568618_19203.cpp:24:59: error: invalid types 'int[int]' for array subscript
   24 |                         ans[i] = (a * ans[i - 1] + b * ans[i - 2]) % 7;
      |                                                           ^
0_0_39568618_19203.cpp:26:28: error: invalid types 'int[int]' for array subscript
   26 |                 cout << ans[n] << endl;
      |                            ^
0_0_39568618_19203.cpp:27:21: error: request for member 'clear' in 'ans', which is of non-class type 'int'
   27 |                 ans.clear();
      |                     ^~~~~


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-26 16:53:22, Gzip enabled