Severity Code Description Project File Line Suppression State
Error C2146 syntax error: missing ';' before identifier 'once' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C2146 syntax error: missing ';' before identifier 'listen' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 18
Error C2146 syntax error: missing ';' before identifier 'bind' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 17
Error C2143 syntax error: missing ';' before '}' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 19
Error C2143 syntax error: missing ';' before '{' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error C2143 syntax error: missing ';' before '{' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C2143 syntax error: missing ';' before '{' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 21
Error C2143 syntax error: missing ')' before ';' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C2059 syntax error: '}' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 19
Error C2059 syntax error: ')' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 5
Error C2059 syntax error: ')' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 15
Error (active) E0135 namespace "uvw" has no member "loop" ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 17
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 18
Error C3613 missing return type after '->' ('int' assumed) ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C3613 missing return type after '->' ('int' assumed) ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 17
Error C3613 missing return type after '->' ('int' assumed) ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 18
Error (active) E0020 identifier "loop" is undefined ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error (active) E0065 expected a ';' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error C2447 '{': missing function header (old-style formal list?) ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C2447 '{': missing function header (old-style formal list?) ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 21
Error C2065 'tcp_handle': undeclared identifier ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 5
Error C2065 'tcp_handle': undeclared identifier ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 5
Error C2039 'tcp_handle': is not a member of 'uvw' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 5
Error C2039 'tcp_handle': is not a member of 'uvw' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 5
Error C2039 'tcp_handle': is not a member of 'uvw' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C2371 'tcp': redefinition; different basic types ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C2371 'tcp': redefinition; different basic types ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 17
Error C2371 'tcp': redefinition; different basic types ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 18
Error C2923 'std::shared_ptr': 'tcp_handle' is not a valid template type argument for parameter '_Ty' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 5
Error C2065 'loop': undeclared identifier ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error C2065 'loop': undeclared identifier ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error C2065 'loop': undeclared identifier ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 5
Error C3083 'loop': the symbol to the left of a '::' must be a type ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 36
Error C2039 'loop': is not a member of 'uvw' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error C2039 'loop': is not a member of 'uvw' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 21
Error C2039 'listen_event': is not a member of 'uvw' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C2039 'listen_event': is not a member of 'uvw' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C2182 'listen': this use of 'void' is not valid ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error C2365 'listen': redefinition; previous definition was 'function' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error C2660 'listen': function does not take 1 arguments ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 37
Error C2039 'get_default': is not a member of 'uvw' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 36
Error C3861 'get_default': identifier not found ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 36
Error C3861 'conn': identifier not found ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 38
Error C3927 '->': trailing return type is not allowed after a non-function declarator ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C3927 '->': trailing return type is not allowed after a non-function declarator ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 17
Error C3927 '->': trailing return type is not allowed after a non-function declarator ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 18
Hello, what's my mistake? I use visual studio community edition 2022, c++17
Severity Code Description Project File Line Suppression State Error C2146 syntax error: missing ';' before identifier 'once' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C2146 syntax error: missing ';' before identifier 'listen' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 18
Error C2146 syntax error: missing ';' before identifier 'bind' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 17
Error C2143 syntax error: missing ';' before '}' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 19
Error C2143 syntax error: missing ';' before '{' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error C2143 syntax error: missing ';' before '{' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C2143 syntax error: missing ';' before '{' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 21
Error C2143 syntax error: missing ')' before ';' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C2059 syntax error: '}' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 19
Error C2059 syntax error: ')' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 5
Error C2059 syntax error: ')' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 15
Error (active) E0135 namespace "uvw" has no member "loop" ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 17
Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 18
Error C3613 missing return type after '->' ('int' assumed) ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C3613 missing return type after '->' ('int' assumed) ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 17
Error C3613 missing return type after '->' ('int' assumed) ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 18
Error (active) E0020 identifier "loop" is undefined ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error (active) E0065 expected a ';' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error C2447 '{': missing function header (old-style formal list?) ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C2447 '{': missing function header (old-style formal list?) ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 21
Error C2065 'tcp_handle': undeclared identifier ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 5
Error C2065 'tcp_handle': undeclared identifier ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 5
Error C2039 'tcp_handle': is not a member of 'uvw' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 5
Error C2039 'tcp_handle': is not a member of 'uvw' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 5
Error C2039 'tcp_handle': is not a member of 'uvw' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C2371 'tcp': redefinition; different basic types ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C2371 'tcp': redefinition; different basic types ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 17
Error C2371 'tcp': redefinition; different basic types ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 18
Error C2923 'std::shared_ptr': 'tcp_handle' is not a valid template type argument for parameter '_Ty' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 5
Error C2065 'loop': undeclared identifier ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error C2065 'loop': undeclared identifier ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error C2065 'loop': undeclared identifier ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 5
Error C3083 'loop': the symbol to the left of a '::' must be a type ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 36
Error C2039 'loop': is not a member of 'uvw' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error C2039 'loop': is not a member of 'uvw' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 21
Error C2039 'listen_event': is not a member of 'uvw' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C2039 'listen_event': is not a member of 'uvw' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C2182 'listen': this use of 'void' is not valid ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error C2365 'listen': redefinition; previous definition was 'function' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 4
Error C2660 'listen': function does not take 1 arguments ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 37
Error C2039 'get_default': is not a member of 'uvw' ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 36
Error C3861 'get_default': identifier not found ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 36
Error C3861 'conn': identifier not found ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 38
Error C3927 '->': trailing return type is not allowed after a non-function declarator ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 7
Error C3927 '->': trailing return type is not allowed after a non-function declarator ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 17
Error C3927 '->': trailing return type is not allowed after a non-function declarator ServerTest C:\Users\andre\source\repos\ServerTest\ServerTest\main.cpp 18