Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- test/3078060.cpp.csv +14 -0
- test/3562523.cpp.csv +10 -0
- test/3562667.cpp.csv +23 -0
- test/626619.cpp.csv +19 -0
- test/626624.cpp.csv +19 -0
- test/6266478.cpp.csv +13 -0
- test/6266579.cpp.csv +13 -0
- test/6266623.cpp.csv +13 -0
- test/6266680.cpp.csv +13 -0
- test/6266748.cpp.csv +13 -0
- test/6266822.cpp.csv +13 -0
- test/6266946.cpp.csv +25 -0
- train/10749539.cpp.csv +11 -0
- train/10749669.cpp.csv +14 -0
- train/10750058.cpp.csv +17 -0
- train/1075077.cpp.csv +10 -0
- train/11829515.cpp.csv +11 -0
- train/11829586.cpp.csv +8 -0
- train/11829662.cpp.csv +7 -0
- train/11829799.cpp.csv +23 -0
- train/11829895.cpp.csv +13 -0
- train/11829935.cpp.csv +21 -0
- train/11830738.cpp.csv +19 -0
- train/11830742.cpp.csv +26 -0
- train/11830829.cpp.csv +19 -0
- train/11830882.cpp.csv +17 -0
- train/11831056.cpp.csv +9 -0
- train/1920702.cpp.csv +30 -0
- train/19207293.cpp.csv +25 -0
- train/19207338.cpp.csv +28 -0
- train/19207353.cpp.csv +31 -0
- train/19207458.cpp.csv +54 -0
- train/19207585.cpp.csv +12 -0
- train/19207611.cpp.csv +50 -0
- train/19208028.cpp.csv +55 -0
- train/19208044.cpp.csv +55 -0
- train/19208078.cpp.csv +15 -0
- train/19208130.cpp.csv +55 -0
- train/19208275.cpp.csv +15 -0
- train/19208312.cpp.csv +18 -0
- train/19208571.cpp.csv +19 -0
- train/22790388.cpp.csv +17 -0
- train/22790541.cpp.csv +21 -0
- train/22790778.cpp.csv +28 -0
- train/22790784.cpp.csv +18 -0
- train/22790979.cpp.csv +13 -0
- train/22791548.cpp.csv +13 -0
- train/22791729.cpp.csv +20 -0
- train/22792092.cpp.csv +16 -0
- train/22792423.cpp.csv +16 -0
test/3078060.cpp.csv
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 4 |
+
scanf("%d", &n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 5 |
+
int p,m,q1,q2,q3,q4,q5;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`7`0`1`8`0`0`0`0`0`0`0`0`0
|
| 6 |
+
int sum[n];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 7 |
+
string name[n];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 8 |
+
int max = 0, pmax = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`1
|
| 9 |
+
for (int i=0; i<n; i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 10 |
+
cin >> name[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 11 |
+
scanf("%d %d %d %d %d %d %d", &p, &m, &q1, &q2, &q3, &q4, &q5);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`7`1`0`1`0`0`0`0`0`0`0`8`0`8`7`0`1`0`7`0`7`0`0
|
| 12 |
+
sum[i] = q1 + q2 + q3 + q4 + q5 + (100*p) - (50*m);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`9`2`2`0`0`0`0`0`0`0`0`9`0`9`0`0`0`9`0`0`9`1`0
|
| 13 |
+
if (sum[i] > max) { max = sum[i]; pmax = i; }`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`8`0`0`0`1`0`0`0`0`0`0`8`0`8`0`0`0`3`0`0`3`2`1
|
| 14 |
+
cout << name[pmax] << endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`1`0
|
test/3562523.cpp.csv
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main(){`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int m = 0, j = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
while(scanf("%d",&a[m ++])==1){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`2`1`1`0`0`1`0`0`1`0`3`0`3`1`0`1`1`2`0`3`1`0
|
| 5 |
+
for(int i=0;i<a[m -1];i++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`2`2`0`0`1`0`0`0`1`1`4`1`6`0`0`0`2`1`0`3`1`0
|
| 6 |
+
scanf("%s%s",M[m-1][i].name,M[m-1][i].ID);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`6`3`2`1`0`0`0`0`0`0`0`7`0`7`0`0`1`2`0`0`2`4`0
|
| 7 |
+
for(int i = 0; i < m; i ++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 8 |
+
for(int j = 0; j < a[m]; j ++){`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`4`1`1`0`0`1`0`0`0`1`1`4`1`6`0`0`0`1`1`0`2`1`0
|
| 9 |
+
printf("%s %s", M[m][i].name, M[m][i].ID);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`6`1`0`1`0`0`0`0`0`0`0`7`0`7`0`0`1`0`0`0`0`4`0
|
| 10 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
test/3562667.cpp.csv
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main(){`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int m = 0, j = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
while(scanf("%d",&a[m ++])==1){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`2`1`1`0`0`1`0`0`1`0`3`0`3`1`0`1`1`2`0`3`1`0
|
| 5 |
+
for(int i=0;i<a[m -1];i++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`2`2`0`0`1`0`0`0`1`1`4`1`6`0`0`0`2`1`0`3`1`0
|
| 6 |
+
scanf("%s%s",M[m-1][i].name,M[m-1][i].ID);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`6`3`2`1`0`0`0`0`0`0`0`7`0`7`0`0`1`2`0`0`2`4`0
|
| 7 |
+
if(m == 25){`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 8 |
+
for(int i = 0; i < m; i ++){`FunctionDecl,false;WhileStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
for(int j = 0; j < a[m]; j ++){`FunctionDecl,false;WhileStmt,false;IfStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`1`0`0`0`5`0`4`4`1`1`0`0`1`0`0`0`1`1`4`1`6`0`0`0`1`1`0`2`1`0
|
| 10 |
+
printf("%s %s", M[m][i].name, M[m][i].ID);`FunctionDecl,false;WhileStmt,false;IfStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`1`0`0`0`5`0`4`6`1`0`1`0`0`0`0`0`0`0`7`0`7`0`0`1`0`0`0`0`4`1
|
| 11 |
+
for(int i=0;i<a[m-1];i++)`FunctionDecl,false;WhileStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`4`2`2`0`0`1`0`0`0`1`1`4`1`6`0`0`0`2`1`0`3`1`0
|
| 12 |
+
if(strcmp(M[m-1][i].ID,"rat")==0)`FunctionDecl,false;WhileStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`2`0`0`0`5`0`4`3`3`2`1`1`0`0`0`0`0`0`4`0`4`0`0`1`2`0`0`2`2`0
|
| 13 |
+
printf("%s\n",M[m-1][i].name);`FunctionDecl,false;WhileStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`2`0`0`0`5`0`4`3`2`1`1`0`0`0`0`0`0`0`4`0`4`0`0`1`1`0`0`1`2`0
|
| 14 |
+
for(int i=0;i<a[m-1];i++)`FunctionDecl,false;WhileStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`4`2`2`0`0`1`0`0`0`1`1`4`1`6`0`0`0`2`1`0`3`1`0
|
| 15 |
+
if(strcmp(M[m-1][i].ID,"woman")==0||strcmp(M[m-1][i].ID,"child")==0)`FunctionDecl,false;WhileStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`2`0`0`0`5`0`6`6`6`4`2`1`0`0`0`0`0`0`8`0`8`0`0`2`5`0`0`5`4`0
|
| 16 |
+
printf("%s\n",M[m-1][i].name);`FunctionDecl,false;WhileStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`2`0`0`0`5`0`6`3`2`1`1`0`0`0`0`0`0`0`4`0`4`0`0`1`1`0`0`1`2`0
|
| 17 |
+
for(int i=0;i<a[m-1];i++)`FunctionDecl,false;WhileStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`4`2`2`0`0`1`0`0`0`1`1`4`1`6`0`0`0`2`1`0`3`1`0
|
| 18 |
+
if(strcmp(M[m-1][i].ID,"man")==0)`FunctionDecl,false;WhileStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`2`0`0`0`5`0`4`3`3`2`1`1`0`0`0`0`0`0`4`0`4`0`0`1`2`0`0`2`2`0
|
| 19 |
+
printf("%s\n",M[m-1][i].name);`FunctionDecl,false;WhileStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`2`0`0`0`5`0`4`3`2`1`1`0`0`0`0`0`0`0`4`0`4`0`0`1`1`0`0`1`2`0
|
| 20 |
+
for(int i=0;i<a[m-1];i++)`FunctionDecl,false;WhileStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`4`2`2`0`0`1`0`0`0`1`1`4`1`6`0`0`0`2`1`0`3`1`0
|
| 21 |
+
if(strcmp(M[m-1][i].ID,"captain")==0)`FunctionDecl,false;WhileStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`2`0`0`0`5`0`4`3`3`2`1`1`0`0`0`0`0`0`4`0`4`0`0`1`2`0`0`2`2`0
|
| 22 |
+
printf("%s\n",M[m-1][i].name);`FunctionDecl,false;WhileStmt,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`2`0`0`0`5`0`4`3`2`1`1`0`0`0`0`0`0`0`4`0`4`0`0`1`1`0`0`1`2`0
|
| 23 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
test/626619.cpp.csv
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main() {`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int n,m,lv;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`3`0`1`4`0`0`0`0`0`0`0`0`0
|
| 4 |
+
double k;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 5 |
+
string name;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 6 |
+
map<string,int> skills;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 7 |
+
cin>>n>>m>>k;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`0`0`0`0`0`0`0
|
| 8 |
+
for (int i=0;i<n;i++) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
cin>>name>>lv;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 10 |
+
lv=(int)(lv*k);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`1
|
| 11 |
+
if (lv>=100) skills[name]=lv;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`1`1`0`1`0`0`0`0`0`0`5`0`5`0`0`0`2`0`0`2`0`0
|
| 12 |
+
for (int i=0;i<m;i++) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 13 |
+
cin>>name;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 14 |
+
if (skills.find(name) == skills.end()) {`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`5`3`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 15 |
+
skills[name]=0;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`5`2`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`0
|
| 16 |
+
cout<<skills.size()<<"\n"; `FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 17 |
+
for (map<string, int>::const_iterator it=skills.begin();it!=skills.end();it++) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`4`4`1`1`0`0`1`0`0`0`1`1`6`1`8`0`0`0`0`0`0`0`0`0
|
| 18 |
+
cout<<it->first<<" "<<it->second<<"\n";`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`4`3`2`0`2`0`0`0`0`0`0`0`9`0`9`0`0`0`0`0`0`0`0`0
|
| 19 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
test/626624.cpp.csv
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main () {`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int n, m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
double t;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`1
|
| 5 |
+
cin >> n >> m >> t;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`0`0`0`0`0`0`0
|
| 6 |
+
t *= 100.;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`1`1`0`1
|
| 7 |
+
vector<pair<string, double> > ab(n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`1`1`3`0`0`0`0`0`0`0`0`0
|
| 8 |
+
REP(i, n) cin >> ab[i].first >> ab[i].second;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`1`0`0`1`0`0
|
| 9 |
+
int i=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`7`1`1`0`0`0`0`0`0`0`1`11`1`13`0`0`0`0`1`0`1`0`0
|
| 10 |
+
while( i<SZ(ab) ) {`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`0`0`0`0`0`1`0`0`1`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 11 |
+
ab[i].second = ab[i].second*t;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`6`0`0`0`0`0`0`0`0`0`0`8`0`8`0`0`0`2`0`0`2`0`1
|
| 12 |
+
if(ab[i].second < 10000.-10e-6) {`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`2`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 13 |
+
ab.erase(ab.begin()+i);`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 14 |
+
}else i++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 15 |
+
for(int i=0 ; i<m ; i++) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 16 |
+
string nueva;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 17 |
+
cin >> nueva;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 18 |
+
bool esta = false;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`1`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 19 |
+
for(int j=0 ; j<SZ(ab) && !esta; j++) if(ab[j].first == nueva) esta = true;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`2`0`0`2`0`0
|
test/6266478.cpp.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main(){`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int n, m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
cin >> n >> m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 5 |
+
ll ans = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 6 |
+
fr(i,0,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`1`0`0`1`0`0
|
| 7 |
+
ll t, T, x, cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`2`0`0`0`0`0`0`0`0`0`4`2`1`7`0`0`0`0`1`0`1`0`0
|
| 8 |
+
cin >> t >> T >> x >> cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`5`0`0`0`0`0`0`0`0`0`0`9`0`9`0`0`0`0`0`0`0`0`0
|
| 9 |
+
ll aux1 = cost + m*x;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`0`0`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`0`1
|
| 10 |
+
ll aux2 = (ll)ceil((double)m/(T-t))*cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`0`0`0`0`0`0`0`0`0`1`5`1`7`0`0`1`3`0`0`3`0`0
|
| 11 |
+
ans += min(aux1, aux2);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`1`0`0`1`1`0`0
|
| 12 |
+
cout << ans << endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 13 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
test/6266579.cpp.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main(){`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int n, m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
cin >> n >> m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 5 |
+
ll ans = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 6 |
+
fr(i,0,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`1`0`0`1`0`0
|
| 7 |
+
ll t, T, x, cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`2`0`0`0`0`0`0`0`0`0`4`2`1`7`0`0`0`0`1`0`1`0`0
|
| 8 |
+
cin >> t >> T >> x >> cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`5`0`0`0`0`0`0`0`0`0`0`9`0`9`0`0`0`0`0`0`0`0`0
|
| 9 |
+
ll aux1 = cost + m*x;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`0`0`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`0`1
|
| 10 |
+
ll aux2 = (ll)ceil((double)m/(T-t))*cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`0`0`0`0`0`0`0`0`0`1`5`1`7`0`0`1`3`0`0`3`0`0
|
| 11 |
+
ans += min(aux1, aux2);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`1`0`0`1`1`0`0
|
| 12 |
+
cout << ans << endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 13 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
test/6266623.cpp.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main(){`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int n, m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
cin >> n >> m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 5 |
+
ll ans = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 6 |
+
fr(i,0,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`1`0`0`1`0`0
|
| 7 |
+
ll t, T, x, cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`2`0`0`0`0`0`0`0`0`0`4`2`1`7`0`0`0`0`1`0`1`0`0
|
| 8 |
+
cin >> t >> T >> x >> cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`5`0`0`0`0`0`0`0`0`0`0`9`0`9`0`0`0`0`0`0`0`0`0
|
| 9 |
+
ll aux1 = cost + m*x;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`0`0`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`0`1
|
| 10 |
+
ll aux2 = (ll)ceil((double)m/(T-t))*cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`0`0`0`0`0`0`0`0`0`1`5`1`7`0`0`1`3`0`0`3`0`0
|
| 11 |
+
ans += min(aux1, aux2);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`1`0`0`1`1`0`0
|
| 12 |
+
cout << ans << endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 13 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
test/6266680.cpp.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main(){`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int n, m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
cin >> n >> m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 5 |
+
ll ans = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 6 |
+
fr(i,0,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`1`0`0`1`0`0
|
| 7 |
+
ll t, T, x, cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`2`0`0`0`0`0`0`0`0`0`4`2`1`7`0`0`0`0`1`0`1`0`0
|
| 8 |
+
cin >> t >> T >> x >> cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`5`0`0`0`0`0`0`0`0`0`0`9`0`9`0`0`0`0`0`0`0`0`0
|
| 9 |
+
ll aux1 = cost + m*x;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`0`0`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`0`1
|
| 10 |
+
ll aux2 = (ll)ceil((double)m/(T-t))*cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`0`0`0`0`0`0`0`0`0`1`5`1`7`0`0`1`3`0`0`3`0`0
|
| 11 |
+
ans += min(aux1, aux2);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`1`0`0`1`1`0`0
|
| 12 |
+
cout << ans << endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 13 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
test/6266748.cpp.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main(){`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int n, m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
cin >> n >> m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 5 |
+
ll ans = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 6 |
+
fr(i,0,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`1`0`0`1`0`0
|
| 7 |
+
ll t, T, x, cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`2`0`0`0`0`0`0`0`0`0`4`2`1`7`0`0`0`0`1`0`1`0`0
|
| 8 |
+
cin >> t >> T >> x >> cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`5`0`0`0`0`0`0`0`0`0`0`9`0`9`0`0`0`0`0`0`0`0`0
|
| 9 |
+
ll aux1 = cost + m*x;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`0`0`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`0`1
|
| 10 |
+
ll aux2 = (ll)ceil((double)m/(T-t))*cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`0`0`0`0`0`0`0`0`0`1`5`1`7`0`0`1`3`0`0`3`0`0
|
| 11 |
+
ans += min(aux1, aux2);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`1`0`0`1`1`0`0
|
| 12 |
+
cout << ans << endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 13 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
test/6266822.cpp.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main(){`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int n, m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
cin >> n >> m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 5 |
+
ll ans = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 6 |
+
fr(i,0,n){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`1`0`0`1`0`0
|
| 7 |
+
ll t, T, x, cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`2`0`0`0`0`0`0`0`0`0`4`2`1`7`0`0`0`0`1`0`1`0`0
|
| 8 |
+
cin >> t >> T >> x >> cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`5`0`0`0`0`0`0`0`0`0`0`9`0`9`0`0`0`0`0`0`0`0`0
|
| 9 |
+
ll aux1 = cost + m*x;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`0`0`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`0`1
|
| 10 |
+
ll aux2 = (ll)ceil((double)m/(T-t))*cost;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`0`0`0`0`0`0`0`0`0`1`5`1`7`0`0`1`3`0`0`3`0`0
|
| 11 |
+
ans += min(aux1, aux2);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`1`0`0`1`1`0`0
|
| 12 |
+
cout << ans << endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 13 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
test/6266946.cpp.csv
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int x;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 4 |
+
while (cin >> x)`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`1`0`0`1`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
vector <int>v1(x);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`0`0`0`0`0`0`0`0`0`1`1`1`3`0`0`0`0`0`0`0`0`0
|
| 6 |
+
int c = 0;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 7 |
+
bool l = 1;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 8 |
+
for (int i = 0; i < x; i++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
cin >> v1[i];`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 10 |
+
sort(v1.begin(), v1.end());`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 11 |
+
for (int i = 0; i < x-1; i++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`2`2`0`0`1`0`0`0`1`1`3`1`5`0`0`0`2`1`0`3`0`0
|
| 12 |
+
int count = 1;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 13 |
+
while (v1[i] == v1[i + 1])`FunctionDecl,false;WhileStmt,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`2`0`0`0`0`0`4`0`3`4`1`1`0`0`0`1`0`0`1`0`6`0`6`0`0`0`2`0`0`2`0`0
|
| 14 |
+
count++;`FunctionDecl,false;WhileStmt,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`2`0`0`0`0`0`4`0`3`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`1
|
| 15 |
+
i++;`FunctionDecl,false;WhileStmt,false;ForStmt,false;WhileStmt,false;`1`0`1`0`0`0`2`0`0`0`0`0`4`0`3`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 16 |
+
if (i == x - 1)`FunctionDecl,false;WhileStmt,false;ForStmt,false;WhileStmt,false;IfStmt,false;`1`0`1`0`0`0`2`0`1`0`0`0`5`0`4`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 17 |
+
break;`FunctionDecl,false;WhileStmt,false;ForStmt,false;WhileStmt,false;IfStmt,false;`1`0`1`0`0`0`2`0`1`0`0`0`5`0`4`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 18 |
+
if (count>2)`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 19 |
+
cout << -1 << endl;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`1`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`1`0`1`0`0
|
| 20 |
+
l = 0;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 21 |
+
break;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 22 |
+
else if (count == 2)`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`2`0`0`0`5`0`4`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 23 |
+
c++;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`2`0`0`0`5`0`4`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 24 |
+
if (l)`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`3`1`0`0`0`1`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 25 |
+
cout << c << endl;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`3`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
train/10749539.cpp.csv
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main() {`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
cin >> n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
for (int i = 1; i < 12; ++i) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 5 |
+
if (i == 10) p[i] = 15;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`2`2`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`1`0
|
| 6 |
+
else p[i] = 4;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 7 |
+
for (int i = 1; i < 15; ++i) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`1
|
| 8 |
+
if (i == n - 10)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 9 |
+
s += p[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 10 |
+
cout << s << endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 11 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/10749669.cpp.csv
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 4 |
+
int i,j;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
cin>>n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 6 |
+
c[1]=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`2`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`1`0
|
| 7 |
+
for(i=2;i<=n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 8 |
+
cin>>c[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 9 |
+
int a,b;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 10 |
+
cin>>a>>b;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 11 |
+
int sum=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 12 |
+
for(i=a;i<=b;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`5`0`0`0`0`1`0`0`0`1`0`5`0`5`0`0`0`2`1`0`3`0`1
|
| 13 |
+
sum+=c[i]; `FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 14 |
+
cout<<sum<<endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
train/10750058.cpp.csv
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main() {`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
cin >> n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
f[0] = f[1] = 1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`1`1
|
| 5 |
+
if(!n){`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`2`2`2`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`1`0`2`1`0
|
| 6 |
+
puts("0 0 0");`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 7 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 8 |
+
for(int i = 2; i < 70; ++i)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 9 |
+
f[i] = f[i - 1] + f[i - 2];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 10 |
+
for(int i = 0; i <= 60; ++i)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`6`4`4`0`0`1`0`0`0`1`1`6`1`8`0`0`0`4`1`0`5`2`0
|
| 11 |
+
for(int j = 0; j <= 60; ++j)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 12 |
+
for(int k = 0; k <= 60; ++k){`FunctionDecl,false;ForStmt,false;ForStmt,false;ForStmt,false;`1`0`3`0`0`0`0`0`0`0`0`0`4`0`3`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 13 |
+
if(f[i] + f[j] + f[k] == n){`FunctionDecl,false;ForStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`3`0`0`0`0`0`1`0`0`0`5`0`3`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 14 |
+
cout << f[i] << " " << f[j] << " " << f[k] << " ";`FunctionDecl,false;ForStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`3`0`0`0`0`0`1`0`0`0`5`0`3`8`0`0`0`0`0`0`0`0`0`0`14`0`14`0`0`0`3`0`0`3`3`0
|
| 15 |
+
return 0;`FunctionDecl,false;ForStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`3`0`0`0`0`0`1`0`0`0`5`0`3`6`4`1`3`0`0`0`0`0`0`0`6`0`6`0`0`0`0`0`0`0`3`0
|
| 16 |
+
puts("I'm too stupid to solve this problem"); `FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 17 |
+
return 0; `FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/1075077.cpp.csv
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main() {`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
cin>>n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
for(int i=0;i<n;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 5 |
+
cin>>s[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 6 |
+
cin>>u>>l>>f>>b>>c>>d>>e;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`8`0`0`0`0`0`0`0`0`0`0`15`0`15`0`0`0`0`0`0`0`0`0
|
| 7 |
+
a[i]=u*100-l*50+f+b+c+d+e;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`9`2`2`0`0`0`0`0`0`0`0`9`0`9`0`0`0`9`0`0`9`1`0
|
| 8 |
+
for(int i=0;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
if(a[i]>mx)j=i,mx=a[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`8`0`0`0`1`0`0`0`0`0`0`8`0`8`0`0`0`4`0`0`4`2`0
|
| 10 |
+
cout<<s[j];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`1`0
|
train/11829515.cpp.csv
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
int n,t,r,sum=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`4`0`1`5`0`0`0`0`0`0`0`0`1
|
| 4 |
+
cin>>n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
t=n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 6 |
+
while(t>0)`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`1`1`0`0`0`1`0`0`1`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 7 |
+
r=t%10;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 8 |
+
sum+=r;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 9 |
+
t=t/10;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 10 |
+
cout<<sum;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 11 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/11829586.cpp.csv
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main() {`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
ios_base::sync_with_stdio(false);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`0`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 4 |
+
cin.tie(NULL);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`1`2`1`4`0`0`0`0`0`0`0`0`0
|
| 5 |
+
std::istream& in(std::cin);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`1`1`3`1`0`0`0`0`0`0`0`0
|
| 6 |
+
std::ostream& out(std::cout);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`1`1`3`1`0`0`0`0`0`0`0`0
|
| 7 |
+
solver.solve(in, out);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 8 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/11829662.cpp.csv
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int abs(int x)`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
return (x>0)? x:x*-1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`2`2`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`1`0`3`0`0
|
| 4 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 5 |
+
int n,x1,x2,y1,y2;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`5`0`1`6`0`0`0`0`0`0`0`0`1
|
| 6 |
+
cin >> n >> x1 >> x2 >> y1 >> y2;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`6`0`0`0`0`0`0`0`0`0`0`11`0`11`0`0`0`0`0`0`0`0`0
|
| 7 |
+
cout << abs(x2-y1)+abs(y2-x1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`0`7`0`7`0`2`2`3`0`0`3`0`0
|
train/11829799.cpp.csv
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
int n, m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`1
|
| 4 |
+
cin >> n >> m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 5 |
+
vector<vector<int> > ludi(n, vector<int> ());`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`1`1`3`0`0`0`0`0`0`0`0`1
|
| 6 |
+
for (int i = 0 ; i < n ; i++) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 7 |
+
int k;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 8 |
+
cin >> k;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 9 |
+
for (int j = 0 ; j < k ; j++) {`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 10 |
+
int x;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 11 |
+
cin >> x;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 12 |
+
ludi[i].push_back(x);`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 13 |
+
set<int> st;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`2`1`2`5`0`0`0`0`1`0`1`0`0
|
| 14 |
+
for (int i = 0 ; i < n ; i++) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 15 |
+
bool fl = false;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`1`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 16 |
+
for (auto t: ludi[i]) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`8`0`0`0`0`0`0`0`0`0`4`12`4`20`3`0`0`0`0`0`0`0`0
|
| 17 |
+
if (st.find(t) != st.end()) {`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`5`3`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 18 |
+
fl = true;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`5`1`1`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 19 |
+
for (auto x: ludi[i])`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`8`0`0`0`0`0`0`0`0`0`4`12`4`20`3`0`0`0`0`0`0`0`0
|
| 20 |
+
st.insert(x);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 21 |
+
if (!fl)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`0`0
|
| 22 |
+
ans++;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 23 |
+
cout << ans;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
train/11829895.cpp.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main() {`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 4 |
+
while (cin >> n) {`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`1`0`0`1`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
int r = ((10+1)==n || (10+11)==n);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`4`4`0`0`0`0`0`0`0`1`2`1`4`0`0`0`5`0`0`5`0`1
|
| 6 |
+
int c[] = { 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10};`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`0`12`12`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 7 |
+
for (int i = 0; i < 12; i++) {`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 8 |
+
if (c[i] + 10 == n) {`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`3`1`1`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`1`0
|
| 9 |
+
r+=4;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`1`1`0`0
|
| 10 |
+
if (i == 9) {`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`2`0`0`0`5`0`4`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 11 |
+
r--;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`2`0`0`0`5`0`4`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 12 |
+
cout << r << endl;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 13 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/11829935.cpp.csv
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int sum=0,s=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`2`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
string m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 5 |
+
cin>>m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 6 |
+
if(m=="1")`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`1`1`0`1`1`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`1
|
| 7 |
+
cout<<"1"<<endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`1`1`0`1`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 8 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 9 |
+
for(;;)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`3`0`0`0`0`0`1`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 10 |
+
if(m.size()==1)`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`4`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 11 |
+
break;`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 12 |
+
for(int t=0; t<m.size(); t++)`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`5`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 13 |
+
sum+=m[t]-'0';`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`2`0`0`0`5`0`5`3`1`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`1`2`0`0
|
| 14 |
+
s++;`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`4`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 15 |
+
m.clear();`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`4`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 16 |
+
stringstream convert;`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 17 |
+
convert << sum;`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`4`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 18 |
+
m=convert.str();`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`4`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 19 |
+
sum=0;`FunctionDecl,false;IfStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`4`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 20 |
+
cout<<s;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 21 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/11830738.cpp.csv
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main(){ `FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
ios::sync_with_stdio(false);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`0`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 4 |
+
cin.tie(0);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 5 |
+
int n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 6 |
+
cin>>n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 7 |
+
vector<int> a(n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`1`1`3`0`0`0`0`0`0`0`0`0
|
| 8 |
+
for(int i=0;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
cin>> a[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 10 |
+
for(int i=0;i<n;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 11 |
+
for(int j=0;j<n;j++){`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 12 |
+
if(i==j) continue;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 13 |
+
for(int k=0;k<n;k++){`FunctionDecl,false;ForStmt,false;ForStmt,false;ForStmt,false;`1`0`3`0`0`0`0`0`0`0`0`0`4`0`3`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 14 |
+
if(i==k || j==k) continue;`FunctionDecl,false;ForStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`3`0`0`0`0`0`1`0`0`0`5`0`6`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 15 |
+
if(a[i]==a[j]+a[k]){`FunctionDecl,false;ForStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`3`0`0`0`0`0`1`0`0`0`5`0`4`6`0`0`0`1`0`0`0`0`0`0`9`0`9`0`0`0`2`0`0`2`0`0
|
| 16 |
+
cout<<i<<" "<<j<<" "<<k<<endl;`FunctionDecl,false;ForStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`3`0`0`0`0`0`1`0`0`0`5`0`4`4`2`0`2`0`0`0`0`0`0`0`10`0`10`0`0`0`0`0`0`0`0`1
|
| 17 |
+
return 0;`FunctionDecl,false;ForStmt,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`3`0`0`0`0`0`1`0`0`0`5`0`4`0`2`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 18 |
+
cout<<-1<<endl; `FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`1`0`1`0`0
|
| 19 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/11830742.cpp.csv
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
bool IsRight(int x[][3]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 4 |
+
int Arr[3][3];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 5 |
+
for(int i=0;i<3;++i)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 6 |
+
for(int j=0;j<3;++j)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 7 |
+
cin >> Arr[i][j];`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`2`0
|
| 8 |
+
for(int i=0;i<10;++i)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`1
|
| 9 |
+
++Arr[0][0];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`2`2`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`2`0
|
| 10 |
+
Arr[1][1] = (Arr[0][0]+Arr[0][1]+Arr[0][2])-(Arr[1][0]+Arr[1][2]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`6`12`12`0`0`0`0`0`0`0`0`6`0`6`0`0`0`5`0`0`5`12`0
|
| 11 |
+
Arr[2][2] = (Arr[0][0]+Arr[0][1]+Arr[0][2])-(Arr[2][0]+Arr[2][1]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`6`12`12`0`0`0`0`0`0`0`0`6`0`6`0`0`0`5`0`0`5`12`0
|
| 12 |
+
if( Arr[1][1]>0 && Arr[2][2]>0 )`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`2`6`6`0`1`0`0`0`0`0`0`2`0`2`0`0`0`3`0`0`3`4`0
|
| 13 |
+
if(IsRight(Arr)) break;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`7`1`0`0`0`1`0`0`0`0`0`0`2`0`2`0`1`1`0`0`0`0`0`0
|
| 14 |
+
for(int i=0;i<3;++i)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 15 |
+
for(int j=0;j<2;++j)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`2`2`2`0`0`1`0`0`0`1`1`2`1`4`0`0`0`1`1`0`2`0`0
|
| 16 |
+
cout << Arr[i][j] << " ";`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`4`1`0`1`0`0`0`0`0`0`0`6`0`6`0`0`0`0`0`0`0`2`0
|
| 17 |
+
cout << Arr[i][2] << endl;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`0`0`0`0`0`0`6`0`6`0`0`0`0`0`0`0`2`0
|
| 18 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 19 |
+
bool IsRight(int x[][3])`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 20 |
+
int v = (x[0][0]+x[0][1]+x[0][2]);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`3`6`6`0`0`0`0`0`0`0`1`3`1`5`0`0`0`2`0`0`2`6`0
|
| 21 |
+
if ( (x[1][0]+x[1][1]+x[1][2])==v && (x[2][0]+x[2][1]+x[2][2])==v &&`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`9`8`12`12`0`1`0`0`0`0`0`0`8`0`8`0`0`0`12`0`0`12`12`0
|
| 22 |
+
(x[0][0]+x[1][0]+x[2][0])==v && (x[0][1]+x[1][1]+x[2][1])==v &&`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`9`8`12`12`0`0`0`0`0`0`0`0`8`0`8`0`0`0`6`0`0`6`12`0
|
| 23 |
+
(x[0][2]+x[1][2]+x[2][2])==v && (x[0][0]+x[1][1]+x[2][2])==v &&`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`9`8`12`12`0`0`0`0`0`0`0`0`8`0`8`0`0`0`6`0`0`6`12`0
|
| 24 |
+
(x[0][2]+x[1][1]+x[2][0])==v )`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`9`4`6`6`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`6`0
|
| 25 |
+
return true;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`9`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 26 |
+
return false;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/11830829.cpp.csv
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
for (int i = 0; i < n; ++i) {`ForStmt,false;`0`0`1`0`0`0`0`0`0`0`0`0`1`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 3 |
+
if (s[i] == 'R') {`ForStmt,false;IfStmt,false;`0`0`1`0`0`0`0`0`1`0`0`0`2`0`2`2`1`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`0
|
| 4 |
+
if (first_R == -1)`ForStmt,false;IfStmt,false;IfStmt,false;`0`0`1`0`0`0`0`0`2`0`0`0`3`0`3`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`1`0`2`0`0
|
| 5 |
+
first_R = i + 1;`ForStmt,false;IfStmt,false;IfStmt,false;`0`0`1`0`0`0`0`0`2`0`0`0`3`0`3`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 6 |
+
last_R = i + 1;`ForStmt,false;IfStmt,false;`0`0`1`0`0`0`0`0`1`0`0`0`2`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 7 |
+
} else if (s[i] == 'L') {`ForStmt,false;IfStmt,false;IfStmt,false;`0`0`1`0`0`0`0`0`2`0`0`0`3`0`3`2`1`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`0`0
|
| 8 |
+
if (first_L == -1)`ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`0`0`1`0`0`0`0`0`3`0`0`0`4`0`4`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`1`0`2`0`0
|
| 9 |
+
first_L = i + 1;`ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`0`0`1`0`0`0`0`0`3`0`0`0`4`0`4`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 10 |
+
if (first_R != -1)`IfStmt,false;`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`1`0`2`0`1
|
| 11 |
+
out << first_R << ' ' << (first_L != -1 ? last_R : last_R + 1);`IfStmt,false;`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`5`3`2`0`0`0`0`0`0`0`0`8`0`8`0`0`0`2`1`0`3`0`0
|
| 12 |
+
out << first_L << ' ' << first_L;`IfStmt,false;`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`3`1`0`0`0`0`0`0`0`0`0`6`0`6`0`0`0`0`0`0`0`0`1
|
| 13 |
+
int main() {`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 14 |
+
ios_base::sync_with_stdio(false);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`0`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 15 |
+
cin.tie(NULL);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`1`2`1`4`0`0`0`0`0`0`0`0`0
|
| 16 |
+
std::istream& in(std::cin);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`1`1`3`1`0`0`0`0`0`0`0`0
|
| 17 |
+
std::ostream& out(std::cout);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`1`1`3`1`0`0`0`0`0`0`0`0
|
| 18 |
+
solver.solve(in, out);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 19 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/11830882.cpp.csv
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main() {`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 4 |
+
int leftClosed =0, rightClosed = 0, leftOpened = 0, rightOpened = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`4`4`0`0`0`0`0`0`0`4`0`1`5`0`0`0`0`0`0`0`0`0
|
| 5 |
+
int x,y;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 6 |
+
cin >> n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 7 |
+
for (int i=0; i<n; i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 8 |
+
cin >> x >>y;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 9 |
+
if (x) leftOpened++;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`0`0
|
| 10 |
+
else leftClosed++;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 11 |
+
if (y) rightOpened++;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`0`0
|
| 12 |
+
else rightClosed++;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 13 |
+
if ( (leftOpened == n || leftClosed == n) && (rightOpened ==n || rightClosed ==n)) cout <<0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`9`9`1`1`0`1`0`0`0`0`0`0`10`0`10`0`0`0`7`0`0`7`0`1
|
| 14 |
+
else if ( (leftOpened == n || leftClosed == n) ) cout << min (rightOpened,rightClosed) << endl;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`13`7`0`0`0`1`0`0`0`0`0`0`11`0`11`0`0`1`3`0`0`3`0`0
|
| 15 |
+
else if ((rightOpened ==n || rightClosed ==n)) cout << min (leftOpened,leftClosed) << endl;`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`17`7`0`0`0`1`0`0`0`0`0`0`11`0`11`0`0`1`3`0`0`3`0`0
|
| 16 |
+
cout << min (leftOpened + rightClosed, leftClosed + rightOpened) << endl;`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`17`5`0`0`0`0`0`0`0`0`0`0`9`0`9`0`0`1`2`0`0`2`0`1
|
| 17 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/11831056.cpp.csv
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int a1 , a2 ,a3 , gcd , sum=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`5`0`1`6`0`0`0`0`0`0`0`0`1
|
| 4 |
+
cin >> a1 >> a2 >> a3 ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`0`0`0`0`0`0`0
|
| 5 |
+
gcd = __gcd(__gcd(a1 , a2) , a3) ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`0`6`0`6`0`0`2`1`0`0`1`0`1
|
| 6 |
+
sum += (6*gcd) ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`1`2`0`0
|
| 7 |
+
sum += (((a1/gcd)*2) + ((a2/gcd)*2) + ((a3/gcd)*2)) ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`7`3`3`0`0`0`0`0`0`0`0`7`0`7`0`0`0`8`0`1`9`0`0
|
| 8 |
+
cout << sum << endl ;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 9 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/1920702.cpp.csv
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int onesInSquare(int n)`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
return (n * n + 1) / 2;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`2`2`0`0`0`0`0`0`0`0`2`0`2`0`0`0`3`0`0`3`0`0
|
| 4 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 5 |
+
cin >> x;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 6 |
+
int r = x % 4;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`1`1`1`3`0`0`0`1`0`0`1`0`1
|
| 7 |
+
for(int n = 1;; ++n)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`0`1`0`1`0`0
|
| 8 |
+
if (n % 2 != 0)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`1`2`2`0`1`0`0`0`0`0`0`1`0`1`0`0`0`2`0`0`2`0`0
|
| 9 |
+
int side = (n - 1) / 2;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`1`2`2`0`0`0`0`0`0`0`1`1`1`3`0`0`0`2`0`0`2`0`0
|
| 10 |
+
int ones = onesInSquare(side);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`1`0`0`0`0`0`0`0`0`0`1`2`1`4`0`1`1`0`0`0`0`0`0
|
| 11 |
+
int need = x;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`1`0`0`0`0`0`0`0`0`0`1`1`1`3`0`0`0`0`0`0`0`0`0
|
| 12 |
+
need -= ones * 4;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`1`2`0`0
|
| 13 |
+
if (need < 0)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`2`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 14 |
+
need = x % 4;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 15 |
+
if (r % 2 == 1)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`2`1`2`2`0`1`0`0`0`0`0`0`1`0`1`0`0`0`2`0`0`2`0`0
|
| 16 |
+
need--;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`2`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 17 |
+
if (4 * (side / 2) >= need)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`3`2`2`2`0`1`0`0`0`0`0`0`2`0`2`0`0`0`3`0`0`3`0`0
|
| 18 |
+
cout << n << endl;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`3`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 19 |
+
return 0;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`3`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 20 |
+
if (4 * ((side + 1) / 2) >= need)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`3`2`3`3`0`1`0`0`0`0`0`0`2`0`2`0`0`0`4`0`0`4`0`0
|
| 21 |
+
cout << n << endl;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`3`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 22 |
+
return 0;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`3`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 23 |
+
if (r != 0)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`2`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 24 |
+
continue;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`2`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 25 |
+
int side = (n - 2) / 2;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`1`2`2`0`0`0`0`0`0`0`1`1`1`3`0`0`0`2`0`0`2`0`1
|
| 26 |
+
int ones = onesInSquare(side);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`1`0`0`0`0`0`0`0`0`0`1`2`1`4`0`1`1`0`0`0`0`0`0
|
| 27 |
+
if (ones * 4 >= x)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 28 |
+
cout << n << endl;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`2`2`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 29 |
+
return 0;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 30 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/19207293.cpp.csv
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
int n,p,q,i;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`4`0`1`5`0`0`0`0`0`0`0`0`1
|
| 4 |
+
cin>>n>>p>>q;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`0`0`0`0`0`0`0
|
| 5 |
+
char st[n];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`1
|
| 6 |
+
cin>>st;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 7 |
+
if(p+q==n)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 8 |
+
for(i=0;i<p;i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 9 |
+
cout<<st[i];`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 10 |
+
cout<<"\n";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 11 |
+
for(i=p;st[i]!='\0';i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`5`1`0`0`0`1`0`0`0`1`0`5`0`5`0`0`0`2`1`0`3`1`0
|
| 12 |
+
cout<< st[i];`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 13 |
+
else if(p+p==n)`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 14 |
+
for(i=0;i<p;i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 15 |
+
cout<<st[i];`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 16 |
+
cout<<"\n";`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 17 |
+
for(i=p;st[i]!='\0';i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`5`1`0`0`0`1`0`0`0`1`0`5`0`5`0`0`0`2`1`0`3`1`0
|
| 18 |
+
cout<<st[i];`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 19 |
+
else if(q+q==n)`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 20 |
+
for(i=0;i<q;i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 21 |
+
cout<<st[i];`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 22 |
+
cout<<"\n";`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 23 |
+
for(i=q;st[i]!='\0';i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`5`1`0`0`0`1`0`0`0`1`0`5`0`5`0`0`0`2`1`0`3`1`0
|
| 24 |
+
cout<<st[i];`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 25 |
+
cout<<"-1";`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
train/19207338.cpp.csv
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
int n,p,q,i;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`4`0`1`5`0`0`0`0`0`0`0`0`1
|
| 4 |
+
cin>>n>>p>>q;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`0`0`0`0`0`0`0
|
| 5 |
+
char st[n];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`1
|
| 6 |
+
cin>>st;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 7 |
+
if(p+q==n)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 8 |
+
{ cout<<p;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 9 |
+
for(i=0;i<p;i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 10 |
+
cout<<st[i];`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 11 |
+
cout<<"\n";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 12 |
+
for(i=p;st[i]!='\0';i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`5`1`0`0`0`1`0`0`0`1`0`5`0`5`0`0`0`2`1`0`3`1`0
|
| 13 |
+
cout<< st[i];`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 14 |
+
else if(p+p==n)`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 15 |
+
{ cout<<p;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 16 |
+
for(i=0;i<p;i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 17 |
+
cout<<st[i];`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 18 |
+
cout<<"\n";`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 19 |
+
for(i=p;st[i]!='\0';i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`5`1`0`0`0`1`0`0`0`1`0`5`0`5`0`0`0`2`1`0`3`1`0
|
| 20 |
+
cout<<st[i];`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 21 |
+
else if(q+q==n)`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 22 |
+
{ cout<<q;`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 23 |
+
for(i=0;i<q;i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 24 |
+
cout<<st[i];`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 25 |
+
cout<<"\n";`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 26 |
+
for(i=q;st[i]!='\0';i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`5`1`0`0`0`1`0`0`0`1`0`5`0`5`0`0`0`2`1`0`3`1`0
|
| 27 |
+
cout<<st[i];`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 28 |
+
cout<<"-1";`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
train/19207353.cpp.csv
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
int n,p,q,i;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`4`0`1`5`0`0`0`0`0`0`0`0`1
|
| 4 |
+
cin>>n>>p>>q;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`0`0`0`0`0`0`0
|
| 5 |
+
char st[n];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`1
|
| 6 |
+
cin>>st;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 7 |
+
if(p+q==n)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 8 |
+
{ cout<<p;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 9 |
+
cout<<"\n";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 10 |
+
for(i=0;i<p;i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 11 |
+
cout<<st[i];`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 12 |
+
cout<<"\n";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 13 |
+
for(i=p;st[i]!='\0';i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`5`1`0`0`0`1`0`0`0`1`0`5`0`5`0`0`0`2`1`0`3`1`0
|
| 14 |
+
cout<< st[i];`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 15 |
+
else if(p+p==n)`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 16 |
+
{ cout<<p;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 17 |
+
cout<<"\n";`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 18 |
+
for(i=0;i<p;i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 19 |
+
cout<<st[i];`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 20 |
+
cout<<"\n";`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 21 |
+
for(i=p;st[i]!='\0';i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`5`1`0`0`0`1`0`0`0`1`0`5`0`5`0`0`0`2`1`0`3`1`0
|
| 22 |
+
cout<<st[i];`FunctionDecl,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 23 |
+
else if(q+q==n)`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 24 |
+
{ cout<<q;`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 25 |
+
cout<<"\n";`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 26 |
+
for(i=0;i<q;i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 27 |
+
cout<<st[i];`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 28 |
+
cout<<"\n";`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 29 |
+
for(i=q;st[i]!='\0';i++)`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`5`1`0`0`0`1`0`0`0`1`0`5`0`5`0`0`0`2`1`0`3`1`0
|
| 30 |
+
cout<<st[i];`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`4`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 31 |
+
cout<<"-1";`FunctionDecl,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`3`0`0`0`4`0`3`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
train/19207458.cpp.csv
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
void Build(int l, int r, int x)`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
t[x] = 0;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`1
|
| 4 |
+
if (l == r)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 5 |
+
return;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 6 |
+
int m = (l + r) / 2;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`1
|
| 7 |
+
Build(ls);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`1`1`0`0`0`0`0`0
|
| 8 |
+
Build(rs);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`1`1`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
|
| 9 |
+
int find(ll x)`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`3`3`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`0`1
|
| 10 |
+
int l = 1, r = n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`2`1`1`4`0`0`0`0`0`0`0`0`0
|
| 11 |
+
int ret = -1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`1`0`1`0`0
|
| 12 |
+
while (l <= r){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`1`0`0`1`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 13 |
+
int m = (l + r) / 2;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 14 |
+
if (tmp[m] >= x){`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 15 |
+
ret = m;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 16 |
+
r = m - 1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 17 |
+
l = m + 1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 18 |
+
return ret;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 19 |
+
void M(int pos, ll val, int l, int r, int x)`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 20 |
+
if (l == r&&l == pos){`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 21 |
+
t[x] = val;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 22 |
+
return;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 23 |
+
int m = (l + r) / 2;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 24 |
+
if (pos <= m)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 25 |
+
M(pos, val, ls);`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`0`0`0`0`0`0
|
| 26 |
+
M(pos, val, rs);`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`5`1`1`0`0`0`0`0`0`0`0`6`0`6`0`1`1`1`0`0`1`0`0
|
| 27 |
+
t[x] = max(t[x * 2], t[x * 2 + 1]);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`9`6`6`0`0`0`0`0`0`0`0`10`0`10`0`0`1`7`0`0`7`3`0
|
| 28 |
+
return;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 29 |
+
ll Q(int L,int R, int l, int r, int x)`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 30 |
+
if (l == L && R == r)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 31 |
+
return t[x];`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`1`0
|
| 32 |
+
int m = (l + r) / 2;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 33 |
+
if (R <= m)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 34 |
+
return Q(L, R, ls);`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`0`0`0`0`0`0
|
| 35 |
+
else if(L>m){`FunctionDecl,true;IfStmt,false;IfStmt,false;`1`1`0`0`0`0`0`0`2`0`0`0`3`1`2`5`1`1`0`1`0`0`0`0`0`0`5`0`5`0`0`0`2`0`0`2`0`0
|
| 36 |
+
return Q(L, R, rs);`FunctionDecl,true;IfStmt,false;IfStmt,false;`1`1`0`0`0`0`0`0`2`0`0`0`3`1`2`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`0`0`0`0`0`0
|
| 37 |
+
return max(Q(L, m, ls), Q(m + 1, R, rs));`FunctionDecl,true;IfStmt,false;IfStmt,false;`1`1`0`0`0`0`0`0`2`0`0`0`3`1`2`5`3`3`0`0`0`0`0`0`0`0`7`0`7`0`1`2`3`0`0`3`0`0
|
| 38 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`8`5`5`0`0`0`0`0`0`0`0`9`0`9`0`1`1`5`0`0`5`0`0
|
| 39 |
+
while (scanf("%d", &n) != EOF){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`2`1`1`0`0`1`0`0`1`0`2`0`2`1`0`1`1`2`0`3`0`1
|
| 40 |
+
memset(t, 0, sizeof(t));`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`1
|
| 41 |
+
for (int i = 1; i <= n; i++){`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 42 |
+
scanf("%d%d", &cake[i].r, &cake[i].h);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`1`0`1`0`0`0`0`0`0`0`5`0`5`2`0`1`0`2`0`2`2`1
|
| 43 |
+
cake[i].v = cake[i].r*cake[i].r*cake[i].h;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`8`0`0`0`0`0`0`0`0`0`0`8`0`8`0`0`0`3`0`0`3`4`0
|
| 44 |
+
tmp[i] = cake[i].v;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`2`0
|
| 45 |
+
sort(tmp + 1,tmp + n + 1);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`1`3`0`0`3`0`0
|
| 46 |
+
for (int i = 1; i <= n; i++){`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 47 |
+
int pos = find(cake[i].v);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`1`3`1`5`0`1`1`0`0`0`0`1`0
|
| 48 |
+
ll val;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 49 |
+
if (pos == 0)`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`1
|
| 50 |
+
val = 0;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`1
|
| 51 |
+
val=Q(1, pos, 1, n, 1) + cake[i].v;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`5`3`3`0`0`0`0`0`0`0`0`6`0`6`0`1`1`2`0`0`2`1`0
|
| 52 |
+
M(pos, val, 1, n, 1);`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`3`2`2`0`0`0`0`0`0`0`0`4`0`4`0`1`1`0`0`0`0`0`0
|
| 53 |
+
printf("%.12llf\n", t[1] * PI*1.0);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`2`1`1`0`0`0`0`0`0`0`2`0`2`0`0`1`2`0`0`2`1`1
|
| 54 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`1`0`0`0`0`0`0`0`0`1`0`1`0`0`1`0`1`0`1`0`0
|
train/19207585.cpp.csv
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int n,i,a;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`3`0`1`4`0`0`0`0`0`0`0`0`0
|
| 4 |
+
float x;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 5 |
+
cin>>n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 6 |
+
for(i=0;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 7 |
+
cin>>a;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 8 |
+
x=360.0/(180-a);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`2`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`3`0`0`3`0`0
|
| 9 |
+
if(x-int(x)==0)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 10 |
+
cout<<"YES";`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`1
|
| 11 |
+
cout<<"NO";`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`1
|
| 12 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/19207611.cpp.csv
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int n, k;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
scanf("%d%d", &n, &k);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 5 |
+
long long sum = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 6 |
+
FOR(i, 0, n) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`1`0`0`1`0`0
|
| 7 |
+
scanf("%d", &A[i]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`4`1`0`1`0`0`0`0`0`0`0`5`0`5`1`0`1`0`2`0`2`1`0
|
| 8 |
+
sum += A[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 9 |
+
if (sum <= k) {`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 10 |
+
if (sum % n == 0) cout << 0 << endl;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`3`2`2`0`1`0`0`0`0`0`0`6`0`6`0`0`0`2`0`0`2`0`0
|
| 11 |
+
else cout << 1 << endl;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`1`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 12 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 13 |
+
sort(A, A + n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`1`1`0`0`1`0`0
|
| 14 |
+
reverse(A, A + n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`1`1`0`0`1`0`0
|
| 15 |
+
long long s = k;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`1`1`3`0`0`0`0`0`0`0`0`0
|
| 16 |
+
int pos = -1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`1`0`1`0`0
|
| 17 |
+
FOR(i, 0, n) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`1`0`0`1`0`0
|
| 18 |
+
int diff = A[i] - A[i + 1];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`6`1`1`0`0`0`0`0`0`0`1`6`1`8`0`0`0`2`1`0`3`2`0
|
| 19 |
+
s -= diff * (long long)(i + 1);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`1`3`0`0
|
| 20 |
+
pos = i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 21 |
+
if (s <= 0) break;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 22 |
+
int level = A[pos + 1];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`1`0`0`1`1`0
|
| 23 |
+
int left = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 24 |
+
if (s < 0) {`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 25 |
+
s = -s;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`1`0`2`0`0
|
| 26 |
+
int cnt = s / (pos + 1);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 27 |
+
level += cnt;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`1`1`0`0
|
| 28 |
+
left = s % (pos + 1);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`3`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`0`0
|
| 29 |
+
RFOR(i, pos + 1, 0) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`2`0`0`2`0`0
|
| 30 |
+
A[i] = level;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`5`2`2`0`0`0`0`0`0`0`0`5`0`5`0`0`0`2`1`0`3`1`0
|
| 31 |
+
if (i < left) A[i]++;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`1`0`2`1`0
|
| 32 |
+
reverse(A, A + n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`1`1`0`0`1`0`0
|
| 33 |
+
s = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`1
|
| 34 |
+
FOR(i, 0, n) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`1`0`0`1`0`0
|
| 35 |
+
s += A[n-1] - A[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`7`1`1`0`0`0`0`0`0`0`0`7`0`7`0`0`0`2`1`1`4`2`0
|
| 36 |
+
if (s <= k) {`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 37 |
+
cout << 0 << endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`1
|
| 38 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 39 |
+
s = k;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 40 |
+
FOR(i, 0, n) {`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`1`1`1`0`0`1`0`0`0`1`1`1`1`3`0`0`0`1`0`0`1`0`0
|
| 41 |
+
s -= (A[i + 1] - A[i]) * (long long)(i + 1);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`0`8`2`2`0`0`0`0`0`0`0`0`8`0`8`0`0`0`4`1`1`6`2`0
|
| 42 |
+
if (s == 0) {`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 43 |
+
cout << A[n - 1] - A[i + 1] << endl;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`5`2`2`0`0`0`0`0`0`0`0`8`0`8`0`0`0`3`0`0`3`2`0
|
| 44 |
+
return 0;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 45 |
+
if (s < 0) {`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 46 |
+
int cnt = s / (i + 1);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`1
|
| 47 |
+
cout << A[n - 1] - A[i] + cnt << endl;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`6`1`1`0`0`0`0`0`0`0`0`9`0`9`0`0`0`3`0`0`3`2`1
|
| 48 |
+
return 0;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 49 |
+
throw - 1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0
|
| 50 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/19208028.cpp.csv
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
void Build(int l, int r, int x)`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
t[x] = 0;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`1
|
| 4 |
+
if (l == r)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 5 |
+
return;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 6 |
+
int m = (l + r) / 2;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`1
|
| 7 |
+
Build(ls);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`1`1`0`0`0`0`0`0
|
| 8 |
+
Build(rs);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`1`1`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
|
| 9 |
+
int find(ll x)`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`3`3`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`0`1
|
| 10 |
+
int l = 1, r = n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`2`1`1`4`0`0`0`0`0`0`0`0`0
|
| 11 |
+
int ret = -1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`1`0`1`0`0
|
| 12 |
+
while (l <= r){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`1`0`0`1`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 13 |
+
int m = (l + r) / 2;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 14 |
+
if (tmp[m] >= x){`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 15 |
+
ret = m;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 16 |
+
r = m - 1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 17 |
+
l = m + 1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 18 |
+
return ret;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 19 |
+
void M(int pos, ll val, int l, int r, int x)`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 20 |
+
if (l == r&&l == pos){`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 21 |
+
t[x] = val;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 22 |
+
return;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 23 |
+
int m = (l + r) / 2;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 24 |
+
if (pos <= m)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 25 |
+
M(pos, val, ls);`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`0`0`0`0`0`0
|
| 26 |
+
M(pos, val, rs);`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`5`1`1`0`0`0`0`0`0`0`0`6`0`6`0`1`1`1`0`0`1`0`0
|
| 27 |
+
t[x] = max(t[x * 2], t[x * 2 + 1]);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`9`6`6`0`0`0`0`0`0`0`0`10`0`10`0`0`1`7`0`0`7`3`0
|
| 28 |
+
return;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 29 |
+
ll Q(int L,int R, int l, int r, int x)`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 30 |
+
if (l == L && R == r)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 31 |
+
return t[x];`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`1`0
|
| 32 |
+
int m = (l + r) / 2;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 33 |
+
if (R <= m)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 34 |
+
return Q(L, R, ls);`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`0`0`0`0`0`0
|
| 35 |
+
else if(L>m){`FunctionDecl,true;IfStmt,false;IfStmt,false;`1`1`0`0`0`0`0`0`2`0`0`0`3`1`2`5`1`1`0`1`0`0`0`0`0`0`5`0`5`0`0`0`2`0`0`2`0`0
|
| 36 |
+
return Q(L, R, rs);`FunctionDecl,true;IfStmt,false;IfStmt,false;`1`1`0`0`0`0`0`0`2`0`0`0`3`1`2`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`0`0`0`0`0`0
|
| 37 |
+
return max(Q(L, m, ls), Q(m + 1, R, rs));`FunctionDecl,true;IfStmt,false;IfStmt,false;`1`1`0`0`0`0`0`0`2`0`0`0`3`1`2`5`3`3`0`0`0`0`0`0`0`0`7`0`7`0`1`2`3`0`0`3`0`0
|
| 38 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`8`5`5`0`0`0`0`0`0`0`0`9`0`9`0`1`1`5`0`0`5`0`0
|
| 39 |
+
while (scanf("%d", &n) != EOF){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`2`1`1`0`0`1`0`0`1`0`2`0`2`1`0`1`1`2`0`3`0`1
|
| 40 |
+
memset(t, 0, sizeof(t));`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`1
|
| 41 |
+
for (int i = 1; i <= n; i++){`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 42 |
+
scanf("%d%d", &cake[i].r, &cake[i].h);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`1`0`1`0`0`0`0`0`0`0`5`0`5`2`0`1`0`2`0`2`2`1
|
| 43 |
+
cake[i].v = cake[i].r*cake[i].r*cake[i].h;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`8`0`0`0`0`0`0`0`0`0`0`8`0`8`0`0`0`3`0`0`3`4`0
|
| 44 |
+
tmp[i] = cake[i].v;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`2`0
|
| 45 |
+
sort(tmp + 1,tmp + n + 1);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`1`3`0`0`3`0`0
|
| 46 |
+
for (int i = 1; i <= n; i++){`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 47 |
+
int pos = find(cake[i].v);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`1`3`1`5`0`1`1`0`0`0`0`1`0
|
| 48 |
+
ll val;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 49 |
+
if (pos == 1)`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 50 |
+
val = 0;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`1
|
| 51 |
+
val = Q(1, pos - 1, 1, n, 1) + cake[i].v;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`5`4`4`0`0`0`0`0`0`0`0`6`0`6`0`1`1`3`0`0`3`1`0
|
| 52 |
+
val = val > cake[i].v ? val : cake[i].v;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`7`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`0`2`0`0`2`2`1
|
| 53 |
+
M(pos , val, 1, n, 1);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`2`2`0`0`0`0`0`0`0`0`4`0`4`0`1`1`0`0`0`0`0`0
|
| 54 |
+
printf("%.15lf\n", t[1] * PI*1.0);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`2`1`1`0`0`0`0`0`0`0`2`0`2`0`0`1`2`0`0`2`1`1
|
| 55 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`1`0`0`0`0`0`0`0`0`1`0`1`0`0`1`0`1`0`1`0`1
|
train/19208044.cpp.csv
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
void Build(int l, int r, int x)`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
t[x] = 0;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`1
|
| 4 |
+
if (l == r)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 5 |
+
return;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 6 |
+
int m = (l + r) / 2;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`1
|
| 7 |
+
Build(ls);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`1`1`0`0`0`0`0`0
|
| 8 |
+
Build(rs);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`1`1`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
|
| 9 |
+
int find(ll x)`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`3`3`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`0`1
|
| 10 |
+
int l = 1, r = n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`2`1`1`4`0`0`0`0`0`0`0`0`0
|
| 11 |
+
int ret = -1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`1`0`1`0`0
|
| 12 |
+
while (l <= r){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`1`0`0`1`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 13 |
+
int m = (l + r) / 2;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 14 |
+
if (tmp[m] >= x){`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 15 |
+
ret = m;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 16 |
+
r = m - 1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 17 |
+
l = m + 1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 18 |
+
return ret;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 19 |
+
void M(int pos, ll val, int l, int r, int x)`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 20 |
+
if (l == r&&l == pos){`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 21 |
+
t[x] = val;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 22 |
+
return;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 23 |
+
int m = (l + r) / 2;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 24 |
+
if (pos <= m)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 25 |
+
M(pos, val, ls);`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`0`0`0`0`0`0
|
| 26 |
+
M(pos, val, rs);`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`5`1`1`0`0`0`0`0`0`0`0`6`0`6`0`1`1`1`0`0`1`0`0
|
| 27 |
+
t[x] = max(t[x * 2], t[x * 2 + 1]);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`9`6`6`0`0`0`0`0`0`0`0`10`0`10`0`0`1`7`0`0`7`3`0
|
| 28 |
+
return;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 29 |
+
ll Q(int L,int R, int l, int r, int x)`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 30 |
+
if (l == L && R == r)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 31 |
+
return t[x];`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`1`0
|
| 32 |
+
int m = (l + r) / 2;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 33 |
+
if (R <= m)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 34 |
+
return Q(L, R, ls);`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`0`0`0`0`0`0
|
| 35 |
+
else if(L>m){`FunctionDecl,true;IfStmt,false;IfStmt,false;`1`1`0`0`0`0`0`0`2`0`0`0`3`1`2`5`1`1`0`1`0`0`0`0`0`0`5`0`5`0`0`0`2`0`0`2`0`0
|
| 36 |
+
return Q(L, R, rs);`FunctionDecl,true;IfStmt,false;IfStmt,false;`1`1`0`0`0`0`0`0`2`0`0`0`3`1`2`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`0`0`0`0`0`0
|
| 37 |
+
return max(Q(L, m, ls), Q(m + 1, R, rs));`FunctionDecl,true;IfStmt,false;IfStmt,false;`1`1`0`0`0`0`0`0`2`0`0`0`3`1`2`5`3`3`0`0`0`0`0`0`0`0`7`0`7`0`1`2`3`0`0`3`0`0
|
| 38 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`8`5`5`0`0`0`0`0`0`0`0`9`0`9`0`1`1`5`0`0`5`0`0
|
| 39 |
+
while (scanf("%d", &n) != EOF){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`2`1`1`0`0`1`0`0`1`0`2`0`2`1`0`1`1`2`0`3`0`1
|
| 40 |
+
memset(t, 0, sizeof(t));`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`1
|
| 41 |
+
for (int i = 1; i <= n; i++){`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 42 |
+
scanf("%d%d", &cake[i].r, &cake[i].h);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`1`0`1`0`0`0`0`0`0`0`5`0`5`2`0`1`0`2`0`2`2`1
|
| 43 |
+
cake[i].v = cake[i].r*cake[i].r*cake[i].h;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`8`0`0`0`0`0`0`0`0`0`0`8`0`8`0`0`0`3`0`0`3`4`0
|
| 44 |
+
tmp[i] = cake[i].v;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`2`0
|
| 45 |
+
sort(tmp + 1,tmp + n + 1);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`1`3`0`0`3`0`0
|
| 46 |
+
for (int i = 1; i <= n; i++){`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 47 |
+
int pos = find(cake[i].v);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`1`3`1`5`0`1`1`0`0`0`0`1`0
|
| 48 |
+
ll val;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 49 |
+
if (pos == 1)`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 50 |
+
val = 0;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`1
|
| 51 |
+
val = Q(1, pos - 1, 1, n, 1) + cake[i].v;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`5`4`4`0`0`0`0`0`0`0`0`6`0`6`0`1`1`3`0`0`3`1`0
|
| 52 |
+
val = val > cake[i].v ? val : cake[i].v;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`7`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`0`2`0`0`2`2`1
|
| 53 |
+
M(pos , val, 1, n, 1);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`2`2`0`0`0`0`0`0`0`0`4`0`4`0`1`1`0`0`0`0`0`0
|
| 54 |
+
printf("%.15lf\n", t[1] * PI);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`2`1`1`0`0`0`0`0`0`0`2`0`2`0`0`1`1`0`0`1`1`1
|
| 55 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`1`0`1`0`1`0`1
|
train/19208078.cpp.csv
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main(){`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
cin>>a;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
cin>>b;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
sort(a.begin(),a.end());`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`0
|
| 6 |
+
q=a;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`1
|
| 7 |
+
while(q[0]=='0'){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`2`1`0`0`0`1`0`0`1`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 8 |
+
t++;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 9 |
+
swap(q[0],q[t]);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`3`1`1`0`0`0`0`0`0`0`0`6`0`6`0`0`1`0`0`0`0`0`0
|
| 10 |
+
if(q==b){`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`2`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 11 |
+
cout<<"OK";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 12 |
+
cout<<endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`1`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 13 |
+
cout<<"WRONG_ANSWER";`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 14 |
+
cout<<endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`3`1`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 15 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/19208130.cpp.csv
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
void Build(int l, int r, int x)`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
t[x] = 0;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`1
|
| 4 |
+
if (l == r)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 5 |
+
return;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 6 |
+
int m = (l + r) / 2;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`1
|
| 7 |
+
Build(ls);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`1`1`0`0`0`0`0`0
|
| 8 |
+
Build(rs);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`3`1`1`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
|
| 9 |
+
int find(ll x)`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`3`3`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`0`3`0`1
|
| 10 |
+
int l = 1, r = n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`1`0`0`0`0`0`0`0`2`1`1`4`0`0`0`0`0`0`0`0`0
|
| 11 |
+
int ret = -1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`1`0`1`0`0
|
| 12 |
+
while (l <= r){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`1`0`0`1`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 13 |
+
int m = (l + r) / 2;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 14 |
+
if (tmp[m] >= x){`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 15 |
+
ret = m;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 16 |
+
r = m - 1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 17 |
+
l = m + 1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 18 |
+
return ret;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 19 |
+
void M(int pos, ll val, int l, int r, int x)`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 20 |
+
if (l == r&&l == pos){`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 21 |
+
t[x] = val;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 22 |
+
return;`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 23 |
+
int m = (l + r) / 2;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 24 |
+
if (pos <= m)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 25 |
+
M(pos, val, ls);`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`0`0`0`0`0`0
|
| 26 |
+
M(pos, val, rs);`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`5`1`1`0`0`0`0`0`0`0`0`6`0`6`0`1`1`1`0`0`1`0`0
|
| 27 |
+
t[x] = max(t[x * 2], t[x * 2 + 1]);`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`9`6`6`0`0`0`0`0`0`0`0`10`0`10`0`0`1`7`0`0`7`3`0
|
| 28 |
+
return;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 29 |
+
ll Q(int L,int R, int l, int r, int x)`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 30 |
+
if (l == L && R == r)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 31 |
+
return t[x];`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`3`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`1`0
|
| 32 |
+
int m = (l + r) / 2;`FunctionDecl,true;`1`1`0`0`0`0`0`0`0`0`0`0`1`1`0`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 33 |
+
if (R <= m)`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 34 |
+
return Q(L, R, ls);`FunctionDecl,true;IfStmt,false;`1`1`0`0`0`0`0`0`1`0`0`0`2`1`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`0`0`0`0`0`0
|
| 35 |
+
else if(L>m){`FunctionDecl,true;IfStmt,false;IfStmt,false;`1`1`0`0`0`0`0`0`2`0`0`0`3`1`2`5`1`1`0`1`0`0`0`0`0`0`5`0`5`0`0`0`2`0`0`2`0`0
|
| 36 |
+
return Q(L, R, rs);`FunctionDecl,true;IfStmt,false;IfStmt,false;`1`1`0`0`0`0`0`0`2`0`0`0`3`1`2`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`1`1`0`0`0`0`0`0
|
| 37 |
+
return max(Q(L, m, ls), Q(m + 1, R, rs));`FunctionDecl,true;IfStmt,false;IfStmt,false;`1`1`0`0`0`0`0`0`2`0`0`0`3`1`2`5`3`3`0`0`0`0`0`0`0`0`7`0`7`0`1`2`3`0`0`3`0`0
|
| 38 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`8`5`5`0`0`0`0`0`0`0`0`9`0`9`0`1`1`5`0`0`5`0`0
|
| 39 |
+
while (scanf("%d", &n) != EOF){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`2`1`1`0`0`1`0`0`1`0`2`0`2`1`0`1`1`2`0`3`0`1
|
| 40 |
+
memset(t, 0, sizeof(t));`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`0`0`0`1
|
| 41 |
+
for (int i = 1; i <= n; i++){`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 42 |
+
scanf("%d%d", &cake[i].r, &cake[i].h);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`1`0`1`0`0`0`0`0`0`0`5`0`5`2`0`1`0`2`0`2`2`1
|
| 43 |
+
cake[i].v = cake[i].r*cake[i].r*cake[i].h;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`8`0`0`0`0`0`0`0`0`0`0`8`0`8`0`0`0`3`0`0`3`4`0
|
| 44 |
+
tmp[i] = cake[i].v;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`2`0
|
| 45 |
+
sort(tmp + 1,tmp + n + 1);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`1`3`0`0`3`0`0
|
| 46 |
+
for (int i = 1; i <= n; i++){`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 47 |
+
int pos = find(cake[i].v);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`1`3`1`5`0`1`1`0`0`0`0`1`0
|
| 48 |
+
ll val;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 49 |
+
if (pos == 1)`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 50 |
+
val = 0;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`1
|
| 51 |
+
val = Q(1, pos - 1, 1, n, 1) + cake[i].v;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`3`5`4`4`0`0`0`0`0`0`0`0`6`0`6`0`1`1`3`0`0`3`1`0
|
| 52 |
+
val = val > cake[i].v ? val : cake[i].v;`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`7`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`0`2`0`0`2`2`1
|
| 53 |
+
M(pos , val, 1, n, 1);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`3`2`2`0`0`0`0`0`0`0`0`4`0`4`0`1`1`0`0`0`0`0`0
|
| 54 |
+
printf("%.15lf\n", t[1] * PI);`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`2`1`1`0`0`0`0`0`0`0`2`0`2`0`0`1`1`0`0`1`1`1
|
| 55 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`1`0`1`0`1`0`1
|
train/19208275.cpp.csv
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
int n,p,t,vasya=0,petya=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`2`0`0`0`0`0`0`0`5`0`1`6`0`0`0`0`0`0`0`0`1
|
| 4 |
+
cin>>n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
for(int i=1;i<=n;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 6 |
+
cin>>arr[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 7 |
+
for(int i=1;i<=n;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 8 |
+
pos[arr[i]]=i;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`2`0
|
| 9 |
+
cin>>p;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 10 |
+
for(int i=0;i<p;i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 11 |
+
cin>>t;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 12 |
+
vasya+=pos[t];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`1`1`1`0
|
| 13 |
+
petya+=(n-pos[t])+1;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`1`3`1`0
|
| 14 |
+
cout<<vasya<<" "<<petya<<endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`1`0`1`0`0`0`0`0`0`0`8`0`8`0`0`0`0`0`0`0`0`0
|
| 15 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/19208312.cpp.csv
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 4 |
+
cin>>n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
int temp=-300000;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`1`0`1`0`0
|
| 6 |
+
string ans="";`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 7 |
+
for(int i=0;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 8 |
+
string name;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 9 |
+
cin>>name;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 10 |
+
int x,y,score=0,k;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`4`0`1`5`0`0`0`0`0`0`0`0`0
|
| 11 |
+
cin>>x>>y;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 12 |
+
score+=x*100-y*50;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`0`0`0`0`0`0`3`0`3`0`0`0`3`0`1`4`0`0
|
| 13 |
+
for(int j=0;j<n;j++)`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`1
|
| 14 |
+
cin>>k,score+=k;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`1`0`1`2`0`0
|
| 15 |
+
if(score>temp)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 16 |
+
ans=name,temp=score;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`2`0`0`2`0`0
|
| 17 |
+
cout<<ans;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`1
|
| 18 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/19208571.cpp.csv
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int i, j, isWhite = 0, isBlack = 0, stat = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`3`3`0`0`0`0`0`0`0`5`0`1`6`0`0`0`0`0`0`0`0`0
|
| 3 |
+
char s[10];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 4 |
+
char arr[4][4];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 5 |
+
for (i = 0; i < 4; i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`1`0`0`0`1`0`3`0`3`0`0`0`2`1`0`3`0`0
|
| 6 |
+
scanf("%s", &s);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 7 |
+
for (j = 0; j < 4; j++) arr[i][j] = s[j];`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`8`2`2`0`0`1`0`0`0`1`0`8`0`8`0`0`0`3`1`0`4`3`0
|
| 8 |
+
for (i = 0; i < 3; i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`2`2`0`0`1`0`0`0`1`0`3`0`3`0`0`0`2`1`0`3`0`0
|
| 9 |
+
for (j = 0; j < 3; j++){`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`3`2`2`0`0`1`0`0`0`1`0`3`0`3`0`0`0`2`1`0`3`0`0
|
| 10 |
+
isWhite = 0; isBlack = 0;`FunctionDecl,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`0`0`0`0`0`0`3`0`2`2`2`2`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 11 |
+
if (arr[i][j] == '#') isBlack++; else isWhite++;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`5`1`0`0`1`0`0`0`0`0`0`5`0`5`0`0`0`1`2`0`3`2`0
|
| 12 |
+
if (arr[i][j+1] == '#') isBlack++; else isWhite++;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`5`2`1`0`1`0`0`0`0`0`0`5`0`5`0`0`0`2`2`0`4`2`0
|
| 13 |
+
if (arr[i+1][j] == '#') isBlack++; else isWhite++;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`5`2`1`0`1`0`0`0`0`0`0`5`0`5`0`0`0`2`2`0`4`2`0
|
| 14 |
+
if (arr[i+1][j+1] == '#') isBlack++; else isWhite++;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`5`3`2`0`1`0`0`0`0`0`0`5`0`5`0`0`0`3`2`0`5`2`0
|
| 15 |
+
if ((isWhite == 3) || (isBlack == 3)) stat = 1;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`7`3`3`3`0`1`0`0`0`0`0`0`3`0`3`0`0`0`4`0`0`4`0`1
|
| 16 |
+
if (stat) break;`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`1`0`0`0`1`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 17 |
+
if (stat) break;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`0`0`0`1`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 18 |
+
printf((stat)?"YES\n":"NO\n");`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`2`0`2`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
|
| 19 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/22790388.cpp.csv
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
cin >> s1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`1
|
| 4 |
+
cin >> s2;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 5 |
+
for (int i=0; i<s1.size(); i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 6 |
+
a[s1[i]]++;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`1`0`1`0`0
|
| 7 |
+
for (int i=0; i<s2.size(); i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 8 |
+
a[s2[i]]++;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`1`0`1`0`0
|
| 9 |
+
cin >> s3;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 10 |
+
for (int i=0; i<s3.size(); i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 11 |
+
b[s3[i]]++;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`1`0`1`0`0
|
| 12 |
+
for (int i=0; i<s3.size(); i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 13 |
+
if (b[s3[i]] != a[s3[i]])`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`6`0`0`0`1`0`0`0`0`0`0`10`0`10`0`0`0`1`0`0`1`0`0
|
| 14 |
+
cout << "NO";`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 15 |
+
return 0;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 16 |
+
cout << "YES";`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`1
|
| 17 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/22790541.cpp.csv
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int a[100], n, i, max, min, h, k, s;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`8`0`1`9`0`0`0`0`0`0`0`0`1
|
| 3 |
+
scanf("%d",&n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
|
| 4 |
+
for(i=0;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 5 |
+
scanf("%d",&a[i]);`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`2`1`0`1`0`0`0`0`0`0`0`3`0`3`1`0`1`0`1`0`1`1`0
|
| 6 |
+
max=a[0];min=a[0];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`2`0
|
| 7 |
+
for(i=1;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 8 |
+
if(max<a[i])`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 9 |
+
h=0;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 10 |
+
max=a[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 11 |
+
h=h+i;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 12 |
+
if(min>=a[i])`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`1`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 13 |
+
k=0; `FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 14 |
+
min=a[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`1`0`0`1`1`0
|
| 15 |
+
k=k+i;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 16 |
+
s=n-1-k+h;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`4`0`0`4`0`1
|
| 17 |
+
if(k<h)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`1
|
| 18 |
+
s=s-1;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 19 |
+
printf("%d",s);}`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
|
| 20 |
+
if(k>h)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 21 |
+
printf("%d",s);`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`0
|
train/22790778.cpp.csv
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
bool can(int pos){`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 3 |
+
m.clear();`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 4 |
+
int caught = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 5 |
+
for(int i = pos; i < n; i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`2`4`0`0`0`0`1`0`0`0`1`1`4`1`6`0`0`0`1`1`0`2`0`0
|
| 6 |
+
if(!m[s[i]]) caught++;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`5`4`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`0`2`0`2`0`0
|
| 7 |
+
m[s[i]] = 1;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`2`3`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`1`0`0`1`0`0
|
| 8 |
+
return (caught == tot);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 9 |
+
int calc(int pos){`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 10 |
+
m.clear();`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`0`0`0`0`0
|
| 11 |
+
int caught = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 12 |
+
for(int i = pos; i < n; i++){`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`0`0`0`0`1`0`0`0`1`1`4`1`6`0`0`0`1`1`0`2`0`0
|
| 13 |
+
if(!m[s[i]]) caught++;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`4`0`0`0`1`0`0`0`0`0`0`6`0`6`0`0`0`0`2`0`2`0`0
|
| 14 |
+
m[s[i]] = 1;`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`0`0`0`0`0`0`5`0`5`0`0`0`1`0`0`1`0`0
|
| 15 |
+
if(caught == tot) return (i - pos + 1);`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`1`1`0`1`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 16 |
+
return -1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0
|
| 17 |
+
int main(){`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 18 |
+
cin >> s;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`6`1`0`0`0`0`0`0`0`0`0`9`0`9`0`0`1`2`0`0`2`0`0
|
| 19 |
+
string ss = s;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`1`1`3`0`0`0`0`0`0`0`0`0
|
| 20 |
+
sort(all(ss));`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`1`0`0`0`0`0`0
|
| 21 |
+
tot = unique(all(ss)) - ss.begin();`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`1`1`0`0`1`0`0
|
| 22 |
+
int lo = 0, hi = n - 1;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`2`2`0`0`0`0`0`0`0`2`4`1`7`0`0`0`1`0`0`1`0`0
|
| 23 |
+
while(lo <= hi){`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`1`0`0`1`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 24 |
+
int mid = (lo + hi) / 2;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`1`1`0`0`0`0`0`0`0`1`2`1`4`0`0`0`2`0`0`2`0`0
|
| 25 |
+
if(can(mid)) lo = mid + 1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`4`3`1`1`0`1`0`0`0`0`0`0`4`0`4`0`1`1`2`0`0`2`0`1
|
| 26 |
+
else hi = mid - 1;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`4`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 27 |
+
cout << calc(lo - 1) << '\n';`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`2`1`0`0`0`0`0`0`0`0`5`0`5`0`1`1`1`0`0`1`0`0
|
| 28 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/22790784.cpp.csv
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
int n,m,i,j,sum=0,sum1=0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`2`0`0`0`0`0`0`0`6`0`1`7`0`0`0`0`0`0`0`0`1
|
| 4 |
+
cin>>n>>m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 5 |
+
int a[n],b[n];`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0
|
| 6 |
+
for(i=0;i<n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
|
| 7 |
+
cin>>a[i];`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`1`0
|
| 8 |
+
if(a[i]<0)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`1`1`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
|
| 9 |
+
sum=sum+a[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`1`0
|
| 10 |
+
b[sum1]=a[i];`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`2`0
|
| 11 |
+
sum1=sum1+1;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 12 |
+
sort(b,b+sum1);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`1`1`0`0`1`0`0
|
| 13 |
+
if(sum1>m)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`1
|
| 14 |
+
for(i=0;i<(sum1-m);i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`5`1`1`0`0`1`0`0`0`1`0`5`0`5`0`0`0`3`1`0`4`0`0
|
| 15 |
+
sum=sum-b[i];`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`2`0`0`2`1`1
|
| 16 |
+
sum=-sum;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`1`0`2`0`0
|
| 17 |
+
cout<<sum;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 18 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/22790979.cpp.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
cin >> s;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 4 |
+
for (int i=0; i<s.size(); i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 5 |
+
if (s[i] == tolower(s[i])) k1++;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`5`0`0`0`1`0`0`0`0`0`0`8`0`8`0`0`1`1`1`0`2`0`0
|
| 6 |
+
else k2++;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 7 |
+
if (k1 > k2)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`1
|
| 8 |
+
for (int i=0; i<s.size(); i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 9 |
+
s[i] = tolower(s[i]);`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`1`1`0`0`1`0`0
|
| 10 |
+
for (int i=0; i<s.size(); i++)`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`3`1`1`0`0`1`0`0`0`1`1`3`1`5`0`0`0`1`1`0`2`0`0
|
| 11 |
+
s[i] = toupper(s[i]);`FunctionDecl,false;IfStmt,false;ForStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`4`0`0`0`0`0`0`0`0`0`0`7`0`7`0`0`1`1`0`0`1`0`0
|
| 12 |
+
cout << s;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 13 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/22791548.cpp.csv
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
long long int n,m,i;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`3`0`1`4`0`0`0`0`0`0`0`0`0
|
| 3 |
+
scanf("%I64d %I64d",&n,&m);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`1`0`1`0`0`0`0`0`0`0`3`0`3`2`0`1`0`2`0`2`0`0
|
| 4 |
+
for(i=1;i<=n;i++)`FunctionDecl,false;ForStmt,false;`1`0`1`0`0`0`0`0`0`0`0`0`2`0`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`1
|
| 5 |
+
if(i==n)`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 6 |
+
if(m>=i)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`1
|
| 7 |
+
m=m-i;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 8 |
+
i=1;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`2`1`1`1`0`0`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`1
|
| 9 |
+
else if(m>=i)`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 10 |
+
m=m-i;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`3`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`2`0`0`2`0`0
|
| 11 |
+
break;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`3`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`1
|
| 12 |
+
printf("%I64d",m);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`1`0`1`0`0`0`0`0`0`0`2`0`2`0`0`1`0`0`0`0`0`1
|
| 13 |
+
return 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
train/22791729.cpp.csv
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
ifstream fin("input.txt");`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`0`1`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 4 |
+
long long n, m, i = 0, a, counter = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`2`2`0`0`0`0`0`0`0`5`0`1`6`0`0`0`0`0`0`0`0`1
|
| 5 |
+
cin >> n >> m;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`0`0`0`0`0`0
|
| 6 |
+
vector<long long>vec;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`1
|
| 7 |
+
long long sum = 0;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`1`1`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 8 |
+
while (i < n)`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`1`0`0`1`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 9 |
+
cin >> a;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 10 |
+
if (a < 0)`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`0
|
| 11 |
+
counter++;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`1
|
| 12 |
+
sum += abs(a);`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`1`0`0`1`1`0`1
|
| 13 |
+
vec.push_back(a);`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
| 14 |
+
i++;`FunctionDecl,false;WhileStmt,false;`1`0`0`0`0`0`1`0`0`0`0`0`2`0`1`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 15 |
+
if (counter == m)`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`1
|
| 16 |
+
break;`FunctionDecl,false;WhileStmt,false;IfStmt,false;`1`0`0`0`0`0`1`0`1`0`0`0`3`0`2`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 17 |
+
if (vec.size() == n)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`0`0
|
| 18 |
+
cout << 0 << endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`1`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`0
|
| 19 |
+
return 0;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`0`1`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 20 |
+
cout << sum << endl;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`2`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`0`0`0`0`0`1
|
train/22792092.cpp.csv
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
ll lcm(ll a,ll b)`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
return abs(a*b)/__gcd(a,b);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`0`0`0`0`0`0`0`0`0`0`6`0`6`0`0`2`2`0`0`2`0`0
|
| 4 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 5 |
+
ll n,x,a,b;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`4`0`1`5`0`0`0`0`0`0`0`0`0
|
| 6 |
+
cin>>n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 7 |
+
if(n>=3)`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`1`1`1`0`1`0`0`0`0`0`0`1`0`1`0`0`0`1`0`0`1`0`1
|
| 8 |
+
if(n%2==0)`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`1`2`2`0`1`0`0`0`0`0`0`1`0`1`0`0`0`2`0`0`2`0`0
|
| 9 |
+
--n;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`1`0`0`0`0`0`0`0`0`0`0`1`0`1`0`0`0`0`1`0`1`0`0
|
| 10 |
+
a=n-1;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 11 |
+
b=n-2;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`2`0`0`2`0`0
|
| 12 |
+
else a=n-1,b=n-2;`FunctionDecl,false;IfStmt,false;IfStmt,false;`1`0`0`0`0`0`0`0`2`0`0`0`3`0`2`4`2`2`0`0`0`0`0`0`0`0`4`0`4`0`0`0`5`0`0`5`0`0
|
| 13 |
+
else a=n,b=n;`FunctionDecl,false;IfStmt,false;`1`0`0`0`0`0`0`0`1`0`0`0`2`0`1`4`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`0`3`0`0`3`0`0
|
| 14 |
+
x= lcm(n,a);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
|
| 15 |
+
x = lcm(x,b);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`3`0`0`0`0`0`0`0`0`0`0`4`0`4`0`1`1`1`0`0`1`0`0
|
| 16 |
+
cout<<x;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
|
train/22792423.cpp.csv
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
code`block`FunctionDecl`FunctionDeclRec`ForStmt`ForStmtRec`DoStmt`DoStmtRec`WhileStmt`WhileStmtRec`IfStmt`IfStmtRec`SwitchStmt`SwitchStmtRec`countBlocks`countBlocksRec`countCondition`countVariable`countLiteral`IntegerLiteral`StringLiteral`IfStmt`ForStmt`WhileStmt`DoStmt`SwitchStmt`countLoop`VarDecl`DeclRefExpr`DeclStmt`countDecl`countPointer`writeFunction`CallExpr`BinaryOperator`UnaryOperator`CompoundAssignOperator`countOperand`ArraySubscriptE`RealFaultLocation
|
| 2 |
+
int fib(int n){`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 3 |
+
return floor( pow(phi,n)/sqrt(5) + 0.5);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`2`1`0`0`0`0`0`0`0`0`5`0`5`0`0`3`2`0`0`2`0`0
|
| 4 |
+
double log_(double base,double x){`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 5 |
+
return log(x)/log(base);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`4`0`4`0`0`2`1`0`0`1`0`0
|
| 6 |
+
int getindex(int n){`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 7 |
+
return floor( log_(phi,(n*sqrt(5)+0.5)) );`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`2`1`0`0`0`0`0`0`0`0`5`0`5`0`1`3`2`0`0`2`0`0
|
| 8 |
+
int main()`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0`0
|
| 9 |
+
int n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`1`0`1`2`0`0`0`0`0`0`0`0`0
|
| 10 |
+
cin>>n;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`2`0`0`0`0`0`0`0`0`0`0`3`0`3`0`0`0`0`0`0`0`0`0
|
| 11 |
+
int ind=getindex(n);`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`1`0`0`0`0`0`0`0`0`0`1`2`1`4`0`1`1`0`0`0`0`0`0
|
| 12 |
+
int a,b,c;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`0`0`0`0`0`0`0`0`0`0`3`0`1`4`0`0`0`0`0`0`0`0`1
|
| 13 |
+
a=fib(ind-1);a==0?1:a;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`3`3`0`0`0`0`0`0`0`0`5`0`5`0`1`1`3`0`0`3`0`0
|
| 14 |
+
b=fib(ind-3);b==0?1:b;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`3`3`0`0`0`0`0`0`0`0`5`0`5`0`1`1`3`0`0`3`0`0
|
| 15 |
+
c=fib(ind-4);c==0?1:c;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`3`3`0`0`0`0`0`0`0`0`5`0`5`0`1`1`3`0`0`3`0`0
|
| 16 |
+
cout<<a<<" "<<b<<" "<<c<<endl;`FunctionDecl,false;`1`0`0`0`0`0`0`0`0`0`0`0`1`0`0`4`2`0`2`0`0`0`0`0`0`0`10`0`10`0`0`0`0`0`0`0`0`0
|