Writing this question is to give yourself a lesson from codevs1275 FROM2012CCC Canadian High School Information Olympiad
The topic is very simple to judge the monotony of the code as follows
#include <iostream>
using namespace std;
int main () {
int a,b,c,d;
cin>>a>>b>>c>>d;
if (a<b) {
if (b<c) && (c<d)) cout<< "Fish Rising";
else cout<< "No Fish";
return 0;
}
if (a==b) {
if (b==c) && (c==d)) cout<< "Fish at Constant Depth";
else cout<< "No Fish";
return 0;
}
if (a>b) {
if (b>c) && (c>d)) cout<< "Fish Diving";
else cout<< "No Fish";
return 0;
}
return 0;
}
It's the first time you compile it, but because if you have a few conditions behind it, you're going to cry. In a curly brace. The habits of the P-party era still can't be changed.
The second time has not been unexpectedly because of = = = This problem I do not know what to say
Learn from the end of the final refueling good review evening less dry chores early to sleep to improve the efficiency of morning reading
--there is no article to frighten the domestic, the Jianggan horse in the car