title: "this declaration has no storage class or type specifier" Unreal 4
body: <p>I know this might be a question for gamedev but since Im having the problem in Visual studio Im putting it here.</p>
  
  <p>first, here are 2 source code snippets</p>
  
  <p>code chunk 1</p>
  
  <pre><code>#pragma once
  #include "Components/SceneComponent.h"
  #include "CanonLauncher.generated.h"
  
  
  UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
  class BLOCKASSAULT_API UCanonLauncher : public USceneComponent
   {
      GENERATED_BODY()
  
  public: 
  // Sets default values for this component's properties
  UCanonLauncher();
  std::vector&lt;int&gt; canon;
  
  
  // Called when the game starts
  virtual void BeginPlay() override;
  
  // Called every frame
  virtual void TickComponent( float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction ) override;
  int canonTime = 120;
  canonTime = canonTime - 1;
  
  
  
  };
  </code></pre>
  
  <p>code chunk 2</p>
  
  <pre><code>#pragma once
  #include &lt;vector&gt;
  #include &lt;iostream&gt;
  #include "Components/SceneComponent.h"
  #include "CanonLauncher.generated.h"
  
  
  **UCLASS** ( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
  class BLOCKASSAULT_API UCanonLauncher : public USceneComponent
  {
  GENERATED_BODY()
  
  public: 
  // Sets default values for this component's properties
  UCanonLauncher();
  std::vector&lt;int&gt; canon;
  
  
  // Called when the game starts
  virtual void BeginPlay() override;
  
  // Called every frame
  virtual void TickComponent( float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction ) override;
  int canonTime = 120;
  canonTime = canonTime - 1;
  
  
  
  };
  </code></pre>
  
  <p>the first one throws no errors, but obviously my vector code wont work, nor will my variable manipulation for that matter. so I added the bit you see in bold. now the variable manipulations, flow controls, and vectors work but now the bit surrounded by double Asterisks ("**") throws the error</p>
  
  <blockquote>
    <p>this declaration has no storage class or type specifier</p>
  </blockquote>
  
  <p>ADDENDUM 1:</p>
  
  <p>Yeah, I know iostream and vector are creating a code collision with one of the UE4 headers, that bit seems obvious, I just don't know how to work around it</p>