Skip to content

Commit 9be44a8

Browse files
committed
change return type of main because gcc can't deal with it
1 parent d45180a commit 9be44a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: example.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
using namespace std;
44

5-
void main(){
5+
int main(){
66
cout << "hello world";
7+
return 0;
78
}

0 commit comments

Comments
 (0)