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_39585101_13093.cpp:17:1: error: 'vector' does not name a type
   17 | vector<int> fib;
      | ^~~~~~
0_0_39585101_13093.cpp: In function 'void getSG()':
0_0_39585101_13093.cpp:19:5: error: 'memset' was not declared in this scope
   19 |     memset(sg, 0, sizeof(sg));
      |     ^~~~~~
0_0_39585101_13093.cpp:4:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    3 | #include <iostream>
  +++ |+#include <cstring>
    4 | 
0_0_39585101_13093.cpp:23:20: error: 'fib' was not declared in this scope
   23 |         for(auto j:fib){
      |                    ^~~
0_0_39585101_13093.cpp: In function 'void solve()':
0_0_39585101_13093.cpp:39:5: error: 'fib' was not declared in this scope
   39 |     fib.push_back(1); fib.push_back(2);
      |     ^~~


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-22 07:36:21, Gzip enabled