Clion unable to parse template

836 Views Asked by At

I created the following file template in Clion, but when I tried to create a file it said "Unable to parse template". What could be wrong?

#include <bits/stdc++.h>

using namespace std;

#define endl "\n"

int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    return 0;
}
1

There are 1 best solutions below

0
On

Template format requires #[[ and #]] at beginning and end of the file respectively. More information jetbrains.com/help/clion/using-file-and-code-templates.html

Thanks @john