Compile Error
/in/foo.cc:5:5: error: ISO C++ forbids declaration of 'dd' with no type [-fpermissive]
dd() {
^
/in/foo.cc: In member function 'int DD::dd()':
/in/foo.cc:7:2: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
代码
#include<bits/stdc++.h>
struct DD
{
int a;
dd() {
a=0;
}
}dd[100];
int main()
{
return 0;
}