Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
edited body
Source Link
Mythli
  • 6.4k
  • 2
  • 27
  • 31

Add a using namespace std

/* VectorSum.h */ #pragma once #include <vector> <-------- //using namespace std; int VectorSum (const STDstd::vector<int>& values); 

Try to avoid using namespace in header files to avoid name conflicts.

Add a using namespace std

/* VectorSum.h */ #pragma once #include <vector> <-------- //using namespace std; int VectorSum (const STD::vector<int>& values); 

Try to avoid using namespace in header files to avoid name conflicts.

Add a using namespace std

/* VectorSum.h */ #pragma once #include <vector> <-------- //using namespace std; int VectorSum (const std::vector<int>& values); 

Try to avoid using namespace in header files to avoid name conflicts.

added 5 characters in body
Source Link
Mythli
  • 6.4k
  • 2
  • 27
  • 31

Add a using namespace std

/* VectorSum.h */ #pragma once #include <vector> <-------- //using namespace std; int VectorSum (const STD::vector<int>& values); 

Try to avoid using namespace in header files to avoid name conflicts.

Add a using namespace std

/* VectorSum.h */ #pragma once #include <vector> <-------- //using namespace std; int VectorSum (const vector<int>& values); 

Try to avoid using namespace in header files to avoid name conflicts.

Add a using namespace std

/* VectorSum.h */ #pragma once #include <vector> <-------- //using namespace std; int VectorSum (const STD::vector<int>& values); 

Try to avoid using namespace in header files to avoid name conflicts.

added 24 characters in body
Source Link
Armen Tsirunyan
  • 133.6k
  • 61
  • 336
  • 442

Add a "using namespace std"

/* VectorSum.h */ #pragma once #include <-------- //using namespace std; int VectorSum (const vector& values);using namespace std

/* VectorSum.h */ #pragma once #include <vector> <-------- //using namespace std; int VectorSum (const vector<int>& values); 

Try to avoid using namespace in header files to avoid name conflicts.

Add a "using namespace std"

/* VectorSum.h */ #pragma once #include <-------- //using namespace std; int VectorSum (const vector& values);

Try to avoid using namespace in header files to avoid name conflicts.

Add a using namespace std

/* VectorSum.h */ #pragma once #include <vector> <-------- //using namespace std; int VectorSum (const vector<int>& values); 

Try to avoid using namespace in header files to avoid name conflicts.

Source Link
Mythli
  • 6.4k
  • 2
  • 27
  • 31
Loading