repl.it
C++

No description

fork
loading
Files
  • main.cpp
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <iostream>
#include <algorithm>

using namespace std;
int main() {
  int highNum = 0;
  int m;
  int list[4] = {10, 4, 7, 8};
  for (m = 0 ; m < 4 ; m++)    // <-- semicolon?
  {
	  if (list[m] > highNum){
		  highNum = list[m];
		  cout << list[m];
	  }
	}
	

}
Fetching token
?