fork(13) download
#include <iostream>
#include <string>
#include <vector>

int main()
{
	const std::vector<std::string> Months {
		"January",
		"February",
		"March",
		"April",
		"May",
		"June",
		"July",
		"August",
		"September",
		"October",
		"November",
		"December"
	};

	Months[3] = "Oh no!";
	std::cout << Months[3] << std::endl;
}
Compilation error #stdin compilation error #stdout 0s 3472KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:22:12: error: passing ‘const value_type {aka const std::basic_string<char>}’ as ‘this’ argument of ‘std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::operator=(const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ discards qualifiers [-fpermissive]
  Months[3] = "Oh no!";
            ^
stdout

Standard output is empty