#include <iostream> using namespace std; int main() { int x[] = {1,2,3,4}; x[1] = {99999999999}; cout << x[1] << endl; return 0; }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:6:21: error: narrowing conversion of ‘99999999999l’ from ‘long int’ to ‘int’ inside { } [-Wnarrowing] x[1] = {99999999999}; ^
Standard output is empty