/in/foo.cc:50:5: error: 'cin' does not name a type
cin >> n >> k;
^~~
/in/foo.cc:52:5: error: expected unqualified-id before 'for'
for (int i = 0; i < n; i++)
^~~
/in/foo.cc:52:21: error: 'i' does not name a type
for (int i = 0; i < n; i++)
^
/in/foo.cc:52:28: error: 'i' does not name a type
for (int i = 0; i < n; i++)
^
/in/foo.cc:56:15: error: expected constructor, destructor, or type conversion before '(' token
bubbleSort(a, n, k);
^
/in/foo.cc:58:5: error: expected unqualified-id before 'return'
return 0;
^~~~~~
/in/foo.cc:59:1: error: expected declaration before '}' token
}
^