loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.4368189990251923","path":"main.c","file":{"path":"main.c","content":{"asEncoding":{"base64":"I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgYWRkTnVtYmVycyhpbnQgYSwgaW50IGIpOwoKaW50IG1haW4gKCkKewogIGludCBuMSA9IDI7CiAgaW50IG4yID0gMzsKICBpbnQgc3VtOwogIHN1bSA9IGFkZE51bWJlcnMobjEsIG4yKTsKLy8gZnVuY3Rpb24gY2FsbAogIHByaW50ZiAoIiVkIixzdW0pOwogIAogIHJldHVybiAwIDsKfQoKaW50IGFkZE51bWJlcnMgKGludCBhLCBpbnQgYikKLy8gZnVuY3Rpb24gZGVmaW5pdGlvbgp7CiAgaW50IHJlc3VsdDsKICByZXN1bHQgPSBhICsgYjsKICByZXR1cm4gcmVzdWx0OwovLyByZXR1cm4gc3RhdGVtZW50Cn0KCg=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <stdio.h>

int addNumbers(int a, int b);

int main ()
{
  int n1 = 2;
  int n2 = 3;
  int sum;
  sum = addNumbers(n1, n2);
// function call
  printf ("%d",sum);
  
  return 0 ;
}

int addNumbers (int a, int b)
// function definition
{
  int result;
  result = a + b;
  return result;
// return statement
}