fork download
  1. const int N = 32; //Мощность алфавита
  2. int alpha[N] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K',
  3. 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V',
  4. 'W', 'X', 'Y', 'Z', '.', ',', '!', '?', ':', '-'};
  5. int indexof(int c){
  6. for(int i = 0; i < N; i++)
  7. if(c == alpha[i])
  8. return i;
  9. return -1;
  10. }
  11.  
  12.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/gcc/i586-linux-gnu/4.9/../../../i386-linux-gnu/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout
Standard output is empty