Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

lab17feb22x4B.cpp

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.32 sec, absolute service time: 0,51 sec 
edit mode |  history  | discussion
Error(s):
6140358/source.cpp: In function ‘int main()’:
6140358/source.cpp:21:15: error: ‘fnamw’ was not declared in this scope
  if ((fd=open(fnamw, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR))<0)
               ^~~~~
6140358/source.cpp:21:15: note: suggested alternative: ‘fname’
  if ((fd=open(fnamw, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR))<0)
               ^~~~~
               fname
6140358/source.cpp:21:22: error: ‘O_RDWR’ was not declared in this scope
  if ((fd=open(fnamw, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR))<0)
                      ^~~~~~
6140358/source.cpp:21:31: error: ‘O_CREAT’ was not declared in this scope
  if ((fd=open(fnamw, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR))<0)
                               ^~~~~~~
6140358/source.cpp:21:40: error: ‘S_IRUSR’ was not declared in this scope
  if ((fd=open(fnamw, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR))<0)
                                        ^~~~~~~
6140358/source.cpp:21:50: error: ‘S_IWUSR’ was not declared in this scope
  if ((fd=open(fnamw, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR))<0)
                                                  ^~~~~~~
6140358/source.cpp:21:10: error: ‘open’ was not declared in this scope
  if ((fd=open(fnamw, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR))<0)
          ^~~~
6140358/source.cpp:21:10: note: suggested alternative: ‘popen’
  if ((fd=open(fnamw, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR))<0)
          ^~~~
          popen
6140358/source.cpp:14:10: warning: unused variable ‘pid_processo’ [-Wunused-variable]
  int fd, pid_processo;
          ^~~~~~~~~~~~
6140358/source.cpp:15:6: warning: unused variable ‘nread’ [-Wunused-variable]
  int nread,nwrite,status;
      ^~~~~
6140358/source.cpp:15:12: warning: unused variable ‘nwrite’ [-Wunused-variable]
  int nread,nwrite,status;
            ^~~~~~
6140358/source.cpp:15:19: warning: unused variable ‘status’ [-Wunused-variable]
  int nread,nwrite,status;
                   ^~~~~~
6140358/source.cpp:16:7: warning: unused variable ‘st1’ [-Wunused-variable]
  char st1[256]; /*Stringa lunga 256 caratteri*/
       ^~~
6140358/source.cpp:17:7: warning: unused variable ‘st2’ [-Wunused-variable]
  char st2[256]; /*Stringa lunga 256 caratteri*/
       ^~~

        

    
                
λ
.NET NoSQL database for rapid development