Submission #3748306
Source Code Expand
#include<bits/stdc++.h> using namespace std; int n; int srd[100000001]={2,}; int dg(int n){ if(srx[n]) return srx[n]; if(n>0) srx[n]=lgx(n-1)*2+2; } int main(){ cin>>n; dg(n); return 0; }
Submission Info
Submission Time | |
---|---|
Task | F - Trichotomy |
User | luogu_bot4 |
Language | C++ (GCC 5.4.1) |
Score | 0 |
Code Size | 223 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int dg(int)’: ./Main.cpp:6:5: error: ‘srx’ was not declared in this scope if(srx[n]) ^ ./Main.cpp:9:6: error: ‘srx’ was not declared in this scope srx[n]=lgx(n-1)*2+2; ^ ./Main.cpp:9:20: error: ‘lgx’ was not declared in this scope srx[n]=lgx(n-1)*2+2; ^