Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • theo.putegnat/infosec-ecomp
  • damien.armillon/infosec-ecomp
  • mouhamed.sougou/infosec-ecomp
  • cidre-public/compilation/infosec-ecomp
4 results
Show changes
Showing
with 382 additions and 0 deletions
{"output": "", "error": null, "retval": 37761}
\ No newline at end of file
{"output": "", "error": null, "retval": 858}
\ No newline at end of file
SYM_INT
SYM_IDENTIFIER(main)
SYM_LPARENTHESIS
SYM_INT
SYM_IDENTIFIER(a)
SYM_COMMA
SYM_INT
SYM_IDENTIFIER(b)
SYM_RPARENTHESIS
SYM_LBRACE
SYM_INT
SYM_IDENTIFIER(x)
SYM_ASSIGN
SYM_IDENTIFIER(a)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(y)
SYM_ASSIGN
SYM_IDENTIFIER(b)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(z)
SYM_ASSIGN
SYM_IDENTIFIER(a)
SYM_ASTERISK
SYM_IDENTIFIER(b)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(t)
SYM_ASSIGN
SYM_IDENTIFIER(a)
SYM_PLUS
SYM_IDENTIFIER(b)
SYM_PLUS
SYM_IDENTIFIER(z)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(u)
SYM_ASSIGN
SYM_IDENTIFIER(z)
SYM_MINUS
SYM_INTEGER(3)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(v)
SYM_ASSIGN
SYM_IDENTIFIER(x)
SYM_MINUS
SYM_IDENTIFIER(u)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(w)
SYM_ASSIGN
SYM_IDENTIFIER(a)
SYM_ASTERISK
SYM_IDENTIFIER(x)
SYM_PLUS
SYM_IDENTIFIER(z)
SYM_MINUS
SYM_IDENTIFIER(t)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(i)
SYM_ASSIGN
SYM_INTEGER(35)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(j)
SYM_ASSIGN
SYM_IDENTIFIER(i)
SYM_ASTERISK
SYM_IDENTIFIER(w)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(k)
SYM_ASSIGN
SYM_INTEGER(8)
SYM_ASTERISK
SYM_IDENTIFIER(t)
SYM_PLUS
SYM_IDENTIFIER(z)
SYM_DIV
SYM_IDENTIFIER(i)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(l)
SYM_ASSIGN
SYM_INTEGER(19)
SYM_ASTERISK
SYM_IDENTIFIER(k)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(m)
SYM_ASSIGN
SYM_INTEGER(12)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(n)
SYM_ASSIGN
SYM_INTEGER(12)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(o)
SYM_ASSIGN
SYM_INTEGER(12)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(p)
SYM_ASSIGN
SYM_INTEGER(12)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(q)
SYM_ASSIGN
SYM_INTEGER(12)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(r)
SYM_ASSIGN
SYM_INTEGER(12)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(s)
SYM_ASSIGN
SYM_INTEGER(12)
SYM_SEMICOLON
SYM_RETURN
SYM_IDENTIFIER(x)
SYM_PLUS
SYM_IDENTIFIER(y)
SYM_PLUS
SYM_IDENTIFIER(z)
SYM_PLUS
SYM_IDENTIFIER(t)
SYM_PLUS
SYM_IDENTIFIER(u)
SYM_PLUS
SYM_IDENTIFIER(v)
SYM_PLUS
SYM_IDENTIFIER(w)
SYM_PLUS
SYM_IDENTIFIER(i)
SYM_PLUS
SYM_IDENTIFIER(j)
SYM_PLUS
SYM_IDENTIFIER(k)
SYM_PLUS
SYM_IDENTIFIER(l)
SYM_PLUS
SYM_IDENTIFIER(m)
SYM_PLUS
SYM_IDENTIFIER(n)
SYM_PLUS
SYM_IDENTIFIER(o)
SYM_PLUS
SYM_IDENTIFIER(p)
SYM_PLUS
SYM_IDENTIFIER(q)
SYM_PLUS
SYM_IDENTIFIER(r)
SYM_PLUS
SYM_IDENTIFIER(s)
SYM_SEMICOLON
SYM_RBRACE
SYM_EOF
int main(){
int i = 823333;
int j = 7392;
return (i*j/7) % 10;
}
{"output": "", "error": null, "retval": 8}
\ No newline at end of file
{"output": "", "error": null, "retval": 8}
\ No newline at end of file
SYM_INT
SYM_IDENTIFIER(main)
SYM_LPARENTHESIS
SYM_RPARENTHESIS
SYM_LBRACE
SYM_INT
SYM_IDENTIFIER(i)
SYM_ASSIGN
SYM_INTEGER(823333)
SYM_SEMICOLON
SYM_INT
SYM_IDENTIFIER(j)
SYM_ASSIGN
SYM_INTEGER(7392)
SYM_SEMICOLON
SYM_RETURN
SYM_LPARENTHESIS
SYM_IDENTIFIER(i)
SYM_ASTERISK
SYM_IDENTIFIER(j)
SYM_DIV
SYM_INTEGER(7)
SYM_RPARENTHESIS
SYM_MOD
SYM_INTEGER(10)
SYM_SEMICOLON
SYM_RBRACE
SYM_EOF
int main(){
return 1 * (2 * (3 * 4 * (5 * 6) * 7));
}
{"output": "", "error": null, "retval": 5040}
\ No newline at end of file
{"output": "", "error": null, "retval": 5040}
\ No newline at end of file
SYM_INT
SYM_IDENTIFIER(main)
SYM_LPARENTHESIS
SYM_RPARENTHESIS
SYM_LBRACE
SYM_RETURN
SYM_INTEGER(1)
SYM_ASTERISK
SYM_LPARENTHESIS
SYM_INTEGER(2)
SYM_ASTERISK
SYM_LPARENTHESIS
SYM_INTEGER(3)
SYM_ASTERISK
SYM_INTEGER(4)
SYM_ASTERISK
SYM_LPARENTHESIS
SYM_INTEGER(5)
SYM_ASTERISK
SYM_INTEGER(6)
SYM_RPARENTHESIS
SYM_ASTERISK
SYM_INTEGER(7)
SYM_RPARENTHESIS
SYM_RPARENTHESIS
SYM_SEMICOLON
SYM_RBRACE
SYM_EOF
int main(int n){
print(n);
while(n%2 == 0){
print(2);
n = n / 2;
}
int f = 3;
while ( f * f <= n ){
if ( n % f == 0 ) {
print(f);
n = n / f;
} else {
f = f + 2;
}
}
if ( n != 1 ) {
print(n);
}
return 0;
}
{"output": "14\n2\n7\n", "error": null, "retval": 0}
\ No newline at end of file
{"output": "1\n", "error": null, "retval": 0}
\ No newline at end of file
SYM_INT
SYM_IDENTIFIER(main)
SYM_LPARENTHESIS
SYM_INT
SYM_IDENTIFIER(n)
SYM_RPARENTHESIS
SYM_LBRACE
SYM_IDENTIFIER(print)
SYM_LPARENTHESIS
SYM_IDENTIFIER(n)
SYM_RPARENTHESIS
SYM_SEMICOLON
SYM_WHILE
SYM_LPARENTHESIS
SYM_IDENTIFIER(n)
SYM_MOD
SYM_INTEGER(2)
SYM_EQUALITY
SYM_INTEGER(0)
SYM_RPARENTHESIS
SYM_LBRACE
SYM_IDENTIFIER(print)
SYM_LPARENTHESIS
SYM_INTEGER(2)
SYM_RPARENTHESIS
SYM_SEMICOLON
SYM_IDENTIFIER(n)
SYM_ASSIGN
SYM_IDENTIFIER(n)
SYM_DIV
SYM_INTEGER(2)
SYM_SEMICOLON
SYM_RBRACE
SYM_INT
SYM_IDENTIFIER(f)
SYM_ASSIGN
SYM_INTEGER(3)
SYM_SEMICOLON
SYM_WHILE
SYM_LPARENTHESIS
SYM_IDENTIFIER(f)
SYM_ASTERISK
SYM_IDENTIFIER(f)
SYM_LEQ
SYM_IDENTIFIER(n)
SYM_RPARENTHESIS
SYM_LBRACE
SYM_IF
SYM_LPARENTHESIS
SYM_IDENTIFIER(n)
SYM_MOD
SYM_IDENTIFIER(f)
SYM_EQUALITY
SYM_INTEGER(0)
SYM_RPARENTHESIS
SYM_LBRACE
SYM_IDENTIFIER(print)
SYM_LPARENTHESIS
SYM_IDENTIFIER(f)
SYM_RPARENTHESIS
SYM_SEMICOLON
SYM_IDENTIFIER(n)
SYM_ASSIGN
SYM_IDENTIFIER(n)
SYM_DIV
SYM_IDENTIFIER(f)
SYM_SEMICOLON
SYM_RBRACE
SYM_ELSE
SYM_LBRACE
SYM_IDENTIFIER(f)
SYM_ASSIGN
SYM_IDENTIFIER(f)
SYM_PLUS
SYM_INTEGER(2)
SYM_SEMICOLON
SYM_RBRACE
SYM_RBRACE
SYM_IF
SYM_LPARENTHESIS
SYM_IDENTIFIER(n)
SYM_NOTEQ
SYM_INTEGER(1)
SYM_RPARENTHESIS
SYM_LBRACE
SYM_IDENTIFIER(print)
SYM_LPARENTHESIS
SYM_IDENTIFIER(n)
SYM_RPARENTHESIS
SYM_SEMICOLON
SYM_RBRACE
SYM_RETURN
SYM_INTEGER(0)
SYM_SEMICOLON
SYM_RBRACE
SYM_EOF
int main(){
print(300);
return 0;
}
{"output": "300\n", "error": null, "retval": 0}
\ No newline at end of file
{"output": "300\n", "error": null, "retval": 0}
\ No newline at end of file
SYM_INT
SYM_IDENTIFIER(main)
SYM_LPARENTHESIS
SYM_RPARENTHESIS
SYM_LBRACE
SYM_IDENTIFIER(print)
SYM_LPARENTHESIS
SYM_INTEGER(300)
SYM_RPARENTHESIS
SYM_SEMICOLON
SYM_RETURN
SYM_INTEGER(0)
SYM_SEMICOLON
SYM_RBRACE
SYM_EOF
int main(int n){
if(n > 10) { n = 10; }
else {
if ( n < 0 ) { n = 0; }
else { }
}
return n;
}