You need to format your code properly, then these mistakes become apparent:
Code:
#include <iostream>
using namespace std;
int main() {
int x, y, z, m;
cin >> x >> y >> z >> m;
if (x < y && x < z)
m = x;
cout << x << endl // missing ";"
// also: you shouldn't have multiple statements after an if without placing them inside a { block }
else if (z > y)
m = y; cout << y << endl // ";"
else
m = z;
cout << z << endl;
}
So remember to terminate each statement with a semi-colon, and use braces to pack multiple statements together:
Code:
if (condition) {
statement;
statement;
statement;
} else if (condition) {
statement;
} else {
statement;
statement;
}