A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /var/www/html/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/html/application/models/Pastes.php
Line: 430
Function: syntax

File: /var/www/html/application/controllers/Main.php
Line: 470
Function: getPaste

File: /var/www/html/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /var/www/html/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/html/application/models/Pastes.php
Line: 430
Function: syntax

File: /var/www/html/application/controllers/Main.php
Line: 470
Function: getPaste

File: /var/www/html/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /var/www/html/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/html/application/models/Pastes.php
Line: 430
Function: syntax

File: /var/www/html/application/controllers/Main.php
Line: 470
Function: getPaste

File: /var/www/html/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /var/www/html/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/html/application/models/Pastes.php
Line: 430
Function: syntax

File: /var/www/html/application/controllers/Main.php
Line: 470
Function: getPaste

File: /var/www/html/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3502

Backtrace:

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3502
Function: _error_handler

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /var/www/html/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/html/application/models/Pastes.php
Line: 430
Function: syntax

File: /var/www/html/application/controllers/Main.php
Line: 470
Function: getPaste

File: /var/www/html/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /var/www/html/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/html/application/models/Pastes.php
Line: 430
Function: syntax

File: /var/www/html/application/controllers/Main.php
Line: 470
Function: getPaste

File: /var/www/html/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /var/www/html/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/html/application/models/Pastes.php
Line: 430
Function: syntax

File: /var/www/html/application/controllers/Main.php
Line: 470
Function: getPaste

File: /var/www/html/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /var/www/html/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/html/application/models/Pastes.php
Line: 430
Function: syntax

File: /var/www/html/application/controllers/Main.php
Line: 470
Function: getPaste

File: /var/www/html/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /var/www/html/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/html/application/models/Pastes.php
Line: 430
Function: syntax

File: /var/www/html/application/controllers/Main.php
Line: 470
Function: getPaste

File: /var/www/html/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3502

Backtrace:

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3502
Function: _error_handler

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /var/www/html/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/html/application/models/Pastes.php
Line: 430
Function: syntax

File: /var/www/html/application/controllers/Main.php
Line: 470
Function: getPaste

File: /var/www/html/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /var/www/html/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/html/application/models/Pastes.php
Line: 430
Function: syntax

File: /var/www/html/application/controllers/Main.php
Line: 470
Function: getPaste

File: /var/www/html/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /var/www/html/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/html/application/models/Pastes.php
Line: 430
Function: syntax

File: /var/www/html/application/controllers/Main.php
Line: 470
Function: getPaste

File: /var/www/html/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3502

Backtrace:

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 3502
Function: _error_handler

File: /var/www/html/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /var/www/html/application/libraries/Process.php
Line: 45
Function: parse_code

File: /var/www/html/application/models/Pastes.php
Line: 430
Function: syntax

File: /var/www/html/application/controllers/Main.php
Line: 470
Function: getPaste

File: /var/www/html/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /var/www/html/system/core/Exceptions.php:271)

Filename: view/raw.php

Line Number: 2

Backtrace:

File: /var/www/html/themes/default/views/view/raw.php
Line: 2
Function: header

File: /var/www/html/application/core/MY_Loader.php
Line: 147
Function: include

File: /var/www/html/application/core/MY_Loader.php
Line: 34
Function: _ci_load

File: /var/www/html/application/controllers/Main.php
Line: 478
Function: view

File: /var/www/html/index.php
Line: 284
Function: require_once

package main import ("fmt"; "io/ioutil"; "os"; "strings") func main() { rdr := os.Stdin b, err := ioutil.ReadAll(rdr) // b - это не строка, а вырезка из байтов!!! if err != nil { panic("bad input") } s := strings.Split(string(b),"") // string(b) - вырезку из массива байтов - в строку, далее делим строку на символы // для получения символа нельзя обращаться к строке по индексу (UTF-8) // собственно реверс for i, j := 0, len(s)-1; i < j; i, j = i+1, j-1 { s[i], s[j] = s[j], s[i] } // вырезки из строк-символов объединим в строку и выведем fmt.Println(strings.Join(s,"")) }