Problem | scicom |
---|---|
User | MuhammadJana |
Submission Time | 2025-06-20 13:52:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
scicom.cpp: In function ‘int main()’:
scicom.cpp:5:22: error: aggregate ‘main()::sockaddr_in address’ has incomplete type and cannot be defined
5 | struct sockaddr_in address;
| ^~~~~~~
scicom.cpp:7:15: error: ‘BUFFER_SIZE’ was not declared in this scope
7 | char buffer[BUFFER_SIZE] = {0};
| ^~~~~~~~~~~
scicom.cpp:11:27: error: ‘AF_INET’ was not declared in this scope
11 | if ((server_fd = socket(AF_INET, SOCK_STREAM, 0)) == 0) {
| ^~~~~~~
scicom.cpp:11:36: error: ‘SOCK_STREAM’ was not declared in this scope
11 | if ((server_fd = socket(AF_INET, SOCK_STREAM, 0)) == 0) {
| ^~~~~~~~~~~
scicom.cpp:11:20: error: ‘socket’ was not declared in this scope
11 | if ((server_fd = socket(AF_INET, SOCK_STREAM, 0)) == 0) {
| ^~~~~~
scicom.cpp:16:24: error: ‘AF_INET’ was not declared