When writing solution in editor section, default msg is "// Add some code".
We need to add header files and main function template.
In many OJ, a basic template is provided which I think is convenient.
Proposal
It would be useful if a basic template code was shown in the selected language.
The basic template could look like this in C++17:
#include <bits/stdc++.h>
using namespace std;
int main() {
//Add some code
return 0;
}
Alternative
Or, a feature to let user save one / more snippet and choose one of them. After selecting a language, that chosen snippet should auto appear in editor.
Issue
editor section
, default msg is "// Add some code".header files
andmain function
template.Proposal
It would be useful if a basic template code was shown in the selected language.
The basic template could look like this in C++17:
Alternative
Or, a feature to let user save one / more
snippet
and choose one of them. After selecting a language, thatchosen snippet
should auto appear in editor.