c-plus-plus / train /10256611.cpp.csv
ReySajju742's picture
Add files using upload-large-folder tool
dc28400 verified
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
void dfs(int cur)`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
int i;`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`1`0`1`2`0`0`0`0`0`0`0`0`0
for(i = 1; i <= n; i++)`FunctionDecl,true;ForStmt,false;`1`1`1`0`0`0`0`0`0`0`0`0`2`1`1`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
if(conn[cur][i] && !vis[i])`FunctionDecl,true;ForStmt,false;IfStmt,false;`1`1`1`0`0`0`0`0`1`0`0`0`3`1`5`5`0`0`0`1`0`0`0`0`0`0`5`0`5`0`0`0`1`1`0`2`3`0
vis[i]++;`FunctionDecl,true;ForStmt,false;IfStmt,false;`1`1`1`0`0`0`0`0`1`0`0`0`3`1`5`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`1`0
dfs(i);`FunctionDecl,true;ForStmt,false;IfStmt,false;`1`1`1`0`0`0`0`0`1`0`0`0`3`1`5`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`1`1`0`0`0`0`0`0
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
int i, j, tmp, la, k, res;`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`6`0`1`7`0`0`0`0`0`0`0`0`1
while(scanf("%d%d", &n, &m) != EOF)`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`2`0`1`1`3`0`4`0`0
memset(save, 0, sizeof(save));`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`0
memset(vis, 0, sizeof(vis));`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`0
memset(cnt, 0, sizeof(cnt));`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`0
memset(conn, 0, sizeof(conn));`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`0
for(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`4`1`1`0`0`1`0`0`0`1`0`4`0`4`0`0`0`2`1`0`3`0`0
scanf("%d", &tmp);`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`0`0`0`3`0`2`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
for(j = 0; j < tmp; j++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`0`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
scanf("%d", &la);`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`0`0`0`0`4`0`3`1`1`0`1`0`0`0`0`0`0`0`2`0`2`1`0`1`0`1`0`1`0`0
save[la][cnt[la]++] = i;`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`0`0`0`0`4`0`3`5`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`0`1`1`0`2`3`0
for(i = 1; i <= m; i++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;`1`0`1`0`0`0`1`0`0`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
for(j = 0; j < cnt[i]; j++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;`1`0`2`0`0`0`1`0`0`0`0`0`4`0`3`5`1`1`0`0`1`0`0`0`1`0`5`0`5`0`0`0`2`1`0`3`1`0
for(k = j + 1; k < cnt[i]; k++)`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;ForStmt,false;`1`0`3`0`0`0`1`0`0`0`0`0`5`0`4`6`1`1`0`0`1`0`0`0`1`0`6`0`6`0`0`0`3`1`0`4`1`0
int a = save[i][j], b = save[i][k];`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;ForStmt,false;`1`0`3`0`0`0`1`0`0`0`0`0`5`0`4`6`0`0`0`0`0`0`0`0`0`2`6`1`9`0`0`0`0`0`0`0`4`0
conn[a][b] = conn[b][a] = 1;`FunctionDecl,false;WhileStmt,false;ForStmt,false;ForStmt,false;ForStmt,false;`1`0`3`0`0`0`1`0`0`0`0`0`5`0`4`6`1`1`0`0`0`0`0`0`0`0`6`0`6`0`0`0`2`0`0`2`4`0
for(res = 0, 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`5`2`2`0`0`1`0`0`0`1`0`5`0`5`0`0`0`4`1`0`5`0`0
if(!vis[i])`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`4`2`0`0`0`1`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`1`0
vis[i]++;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`4`2`0`0`0`0`0`0`0`0`0`0`2`0`2`0`0`0`0`1`0`1`1`0
dfs(i);`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`0`0`0`4`0`4`1`0`0`0`0`0`0`0`0`0`0`2`0`2`0`1`1`0`0`0`0`0`0
res++;`FunctionDecl,false;WhileStmt,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`1`0`1`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
printf("%d\n", res - 1);`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`0`0
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