language: C++ 4.7.2 (gcc-4.7.2)
date: 121 days 7 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <iostream>
 
struct S
{
    int x;
    int y;
    S(int _x, int _y) : x(_x), y(_y) {}
};
 
int main()
{
    S arr[9];
}
prog.cpp: In function ‘int main()’:
prog.cpp:12: error: no matching function for call to ‘S::S()’
prog.cpp:7: note: candidates are: S::S(int, int)
prog.cpp:4: note:                 S::S(const S&)
prog.cpp:12: warning: unused variable ‘arr’