F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_27783533_25813.cpp: In function 'int main()':
0_0_27783533_25813.cpp:8:2: error: 'strng' was not declared in this scope
  strng s1,s2;
  ^
0_0_27783533_25813.cpp:15:8: error: 's1' was not declared in this scope
   cin>>s1>>s2;
        ^
0_0_27783533_25813.cpp:15:12: error: 's2' was not declared in this scope
   cin>>s1>>s2;
            ^
0_0_27783533_25813.cpp:18:9: error: could not convert '"rat"' from 'const char [4]' to '<type error>'
    case "rat":
         ^
0_0_27783533_25813.cpp:20:9: error: could not convert '"ox"' from 'const char [3]' to '<type error>'
    case "ox":
         ^
0_0_27783533_25813.cpp:22:9: error: could not convert '"tiger"' from 'const char [6]' to '<type error>'
    case "tiger":
         ^
0_0_27783533_25813.cpp:24:9: error: could not convert '"rabbit"' from 'const char [7]' to '<type error>'
    case "rabbit":
         ^
0_0_27783533_25813.cpp:26:9: error: could not convert '"dragon"' from 'const char [7]' to '<type error>'
    case "dragon":
         ^
0_0_27783533_25813.cpp:28:9: error: could not convert '"snake"' from 'const char [6]' to '<type error>'
    case "snake":
         ^
0_0_27783533_25813.cpp:30:9: error: could not convert '"horse"' from 'const char [6]' to '<type error>'
    case "horse":
         ^
0_0_27783533_25813.cpp:32:9: error: could not convert '"sheep"' from 'const char [6]' to '<type error>'
    case "sheep":
         ^
0_0_27783533_25813.cpp:34:9: error: could not convert '"monkey"' from 'const char [7]' to '<type error>'
    case "monkey":
         ^
0_0_27783533_25813.cpp:36:9: error: could not convert '"rooster"' from 'const char [8]' to '<type error>'
    case "rooster":
         ^
0_0_27783533_25813.cpp:38:9: error: could not convert '"dog"' from 'const char [4]' to '<type error>'
    case "dog":
         ^
0_0_27783533_25813.cpp:40:9: error: could not convert '"pig"' from 'const char [4]' to '<type error>'
    case "pig":
         ^
0_0_27783533_25813.cpp:45:9: error: could not convert '"rat"' from 'const char [4]' to '<type error>'
    case "rat":
         ^
0_0_27783533_25813.cpp:47:9: error: could not convert '"ox"' from 'const char [3]' to '<type error>'
    case "ox":
         ^
0_0_27783533_25813.cpp:49:9: error: could not convert '"tiger"' from 'const char [6]' to '<type error>'
    case "tiger":
         ^
0_0_27783533_25813.cpp:51:9: error: could not convert '"rabbit"' from 'const char [7]' to '<type error>'
    case "rabbit":
         ^
0_0_27783533_25813.cpp:53:9: error: could not convert '"dragon"' from 'const char [7]' to '<type error>'
    case "dragon":
         ^
0_0_27783533_25813.cpp:55:9: error: could not convert '"snake"' from 'const char [6]' to '<type error>'
    case "snake":
         ^
0_0_27783533_25813.cpp:57:9: error: could not convert '"horse"' from 'const char [6]' to '<type error>'
    case "horse":
         ^
0_0_27783533_25813.cpp:59:9: error: could not convert '"sheep"' from 'const char [6]' to '<type error>'
    case "sheep":
         ^
0_0_27783533_25813.cpp:61:9: error: could not convert '"monkey"' from 'const char [7]' to '<type error>'
    case "monkey":
         ^
0_0_27783533_25813.cpp:63:9: error: could not convert '"rooster"' from 'const char [8]' to '<type error>'
    case "rooster":
         ^
0_0_27783533_25813.cpp:65:9: error: could not convert '"dog"' from 'const char [4]' to '<type error>'
    case "dog":
         ^
0_0_27783533_25813.cpp:67:9: error: could not convert '"pig"' from 'const char [4]' to '<type error>'
    case "pig":
         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-17 09:32:10, Gzip enabled