[ create a new paste ] login | about

Link: http://codepad.org/0PJADqPY    [ raw code | output | fork ]

C++, pasted on Jul 19:
1
2
3
4
5
6
7
8
struct S {
  S() {}
  int a, b;
};

int main() {
  S s = { 4, 5 };
}


Output:
1
2
3
In function 'int main()':
Line 7: error: scalar object 's' requires one element in initializer
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: