fork(1) download
  1. UW PICO 5.04 File: ask3.c
  2.  
  3. #include <stdio.h>
  4.  
  5. int main(void)
  6.  
  7. {
  8.  
  9.  
  10. char label[10000];
  11. int vreth;
  12.  
  13.  
  14. printf("Dwse leksi re malaka\n");
  15.  
  16. gets(label);
  17.  
  18. int i;
  19. i=0;
  20.  
  21. while(label[i]!= '\0')
  22. {
  23. printf("_");
  24. i++;
  25. }
  26. printf("\n");
  27. int pros;
  28. pros = 10;
  29.  
  30.  
  31. int length;
  32. length = i;
  33. printf("%d",i);
  34. char label2[i];
  35. for(i=0; i<length; i++)
  36. {
  37. label2[i]='_';
  38. }
  39. int bool;
  40. int two;
  41. bool = 0;
  42. char gram;
  43. vreth=0;
  44. int gb;
  45. gb=0;
  46. while(pros>0 && bool==0)
  47. {
  48. scanf("%c", &gram);
  49. i=0;
  50. two = 0;
  51. gb=0;
  52. while(i<length)
  53.  
  54. ^G Get Help ^O WriteOut ^R Read File ^Y Prev Pg ^K Cut Text ^C Cur Pos
  55. ^X Exit ^J Justify ^W Where is ^V Next Pg ^U UnCut Text ^T To Spell
  56.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:1:3: error: unknown type name 'UW'
   UW PICO 5.04                                                                                           File: ask3.c                                                                                              
   ^
prog.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before numeric constant
   UW PICO 5.04                                                                                           File: ask3.c                                                                                              
           ^
In file included from /usr/include/stdio.h:74:0,
                 from prog.c:3:
/usr/include/libio.h:306:3: error: unknown type name 'size_t'
   size_t __pad5;
   ^
/usr/include/libio.h:310:67: error: 'size_t' undeclared here (not in a function)
   char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)];
                                                                   ^
/usr/include/libio.h:338:62: error: expected declaration specifiers or '...' before 'size_t'
 typedef __ssize_t __io_read_fn (void *__cookie, char *__buf, size_t __nbytes);
                                                              ^
/usr/include/libio.h:347:6: error: expected declaration specifiers or '...' before 'size_t'
      size_t __n);
      ^
/usr/include/libio.h:469:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_IO_sgetn'
 extern _IO_size_t _IO_sgetn (_IO_FILE *, void *, _IO_size_t);
                   ^
In file included from prog.c:3:0:
/usr/include/stdio.h:337:20: error: expected declaration specifiers or '...' before 'size_t'
       int __modes, size_t __n) __THROW;
                    ^
/usr/include/stdio.h:386:44: error: expected declaration specifiers or '...' before 'size_t'
 extern int snprintf (char *__restrict __s, size_t __maxlen,
                                            ^
/usr/include/stdio.h:390:45: error: expected declaration specifiers or '...' before 'size_t'
 extern int vsnprintf (char *__restrict __s, size_t __maxlen,
                                             ^
/usr/include/stdio.h:709:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fread'
 extern size_t fread (void *__restrict __ptr, size_t __size,
               ^
/usr/include/stdio.h:715:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'fwrite'
 extern size_t fwrite (const void *__restrict __ptr, size_t __size,
               ^
prog.c: In function 'main':
prog.c:16:1: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
 gets(label);
 ^
prog.c:54:1: error: expected expression before '^' token
 ^G Get Help                        ^O WriteOut                        ^R Read File                       ^Y Prev Pg                         ^K Cut Text                        ^C Cur Pos                         
 ^
prog.c:55:1: error: expected declaration or statement at end of input
 ^X Exit                            ^J Justify                         ^W Where is                        ^V Next Pg                         ^U UnCut Text                      ^T To Spell                        
 ^
prog.c:55:1: error: expected declaration or statement at end of input
prog.c:44:5: warning: variable 'gb' set but not used [-Wunused-but-set-variable]
 int gb;
     ^
prog.c:40:5: warning: variable 'two' set but not used [-Wunused-but-set-variable]
 int two;
     ^
prog.c:34:6: warning: variable 'label2' set but not used [-Wunused-but-set-variable]
 char label2[i];
      ^
prog.c:11:5: warning: variable 'vreth' set but not used [-Wunused-but-set-variable]
 int vreth;
     ^
stdout
Standard output is empty