0_0_27783074_29480.cpp: In function 'int p(char, char)':
0_0_27783074_29480.cpp:6:3: error: 'trot' was not declared in this scope
trot=1;
^
0_0_27783074_29480.cpp:7:3: error: 'ox' was not declared in this scope
ox=2;
^
0_0_27783074_29480.cpp:8:3: error: 'tiger' was not declared in this scope
tiger=3;
^
0_0_27783074_29480.cpp:9:3: error: 'rabbit' was not declared in this scope
rabbit=4;
^
0_0_27783074_29480.cpp:10:3: error: 'dragon' was not declared in this scope
dragon=5;
^
0_0_27783074_29480.cpp:11:3: error: 'snake' was not declared in this scope
snake=6;
^
0_0_27783074_29480.cpp:12:3: error: 'horse' was not declared in this scope
horse=7;
^
0_0_27783074_29480.cpp:13:3: error: 'sheep' was not declared in this scope
sheep=8;
^
0_0_27783074_29480.cpp:14:3: error: 'monkey' was not declared in this scope
monkey=9;
^
0_0_27783074_29480.cpp:15:3: error: 'rooster' was not declared in this scope
rooster=10;
^
0_0_27783074_29480.cpp:16:3: error: 'dog' was not declared in this scope
dog=11;
^
0_0_27783074_29480.cpp:17:3: error: 'pig' was not declared in this scope
pig=12;
^
0_0_27783074_29480.cpp: In function 'int main()':
0_0_27783074_29480.cpp:29:6: error: no match for 'operator[]' (operand types are 'int(char, char)' and 'std::string {aka std::basic_string<char>}')
x=p[a];
^
0_0_27783074_29480.cpp:30:6: error: no match for 'operator[]' (operand types are 'int(char, char)' and 'std::string {aka std::basic_string<char>}')
y=p[b];
^
|