c-plus-plus / test /3085512.cpp.csv
ReySajju742's picture
Add files using upload-large-folder tool
2ab7a4a 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
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
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
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`0
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
cin>>s;`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
if(s=="captain") `FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`1`0`0`0`3`0`4`1`1`0`1`1`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
a[i]=5;`FunctionDecl,false;ForStmt,false;IfStmt,false;`1`0`1`0`0`0`0`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`1`0`0`1`1`0
else if(s=="man")`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`7`1`1`0`1`1`0`0`0`0`0`0`2`0`2`0`0`0`0`0`0`0`0`0
a[i]=4;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`2`0`0`0`4`0`7`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
else if(s=="woman" || s=="child" )`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`14`2`2`0`2`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`0`0
a[i]=3;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`14`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
a[i]=2;`FunctionDecl,false;ForStmt,false;IfStmt,false;IfStmt,false;IfStmt,false;`1`0`1`0`0`0`0`0`3`0`0`0`5`0`14`2`1`1`0`0`0`0`0`0`0`0`2`0`2`0`0`0`1`0`0`1`1`0
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
for(int j=i+1;j<=n;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`2`1`0`3`0`0
if( a[i] > a[j] ) `FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`4`0`0`0`1`0`0`0`0`0`0`4`0`4`0`0`0`1`0`0`1`2`0
swap(a[i],a[j]);`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`4`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`1`0`0`0`0`2`0
swap(S[i],S[j]);`FunctionDecl,false;ForStmt,false;ForStmt,false;IfStmt,false;`1`0`2`0`0`0`0`0`1`0`0`0`4`0`3`4`0`0`0`0`0`0`0`0`0`0`5`0`5`0`0`1`0`0`0`0`2`0
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`0
cout<<S[i]<<endl;`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`6`0`6`0`0`0`0`0`0`0`1`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