Language: C

//runtime error
#include <stdio.h>
#define SIZE 1<<8




char a[SIZE];
char b[SIZE];
char sum[SIZE + 1];




int main(void)
{
&#160; int n;
&#160; int i, j;
&#160; int alen, blen;
&#160; char ch;
&#160; int carry;
&#160;&#160;
&#160; scanf("%d", &n);
&#160; ch = getchar();




&#160; for (i = 0; i < n; i++){
&#160; &#160; memset(a,0,sizeof(char) * (SIZE));
&#160; &#160; memset(b,0,sizeof(char) * (SIZE));
&#160; &#160; memset(sum,0,sizeof(char) * (SIZE + 1));
&#160; &#160;&#160;
&#160; &#160; /*
&#160; &#160; while((ch = getchar()) != '\n');
&#160; &#160; ungetc(ch,NULL);
&#160; &#160; */




&#160; &#160; for (alen = 1; (ch = getchar()) != '\n' ; alen++){
&#160; &#160; &#160; a[alen] = ch - '0';
&#160; &#160; }
&#160; &#160; for (blen = 1; (ch = getchar()) != '\n' ; blen++){
&#160; &#160; &#160; b[blen] = ch - '0';
&#160; &#160; }




&#160; &#160; carry = 0;
&#160; &#160; for (j = 0;; j++){
&#160; &#160; &#160; if(alen){
	alen--;
&#160; &#160; &#160; }
&#160; &#160; &#160; if(blen){
	blen--;
&#160; &#160; &#160; }
&#160; &#160; &#160; if (!(alen || blen || carry)){
	break;
&#160; &#160; &#160; }
&#160; &#160; &#160; sum[j] = a[alen] + b[blen] + carry;
&#160; &#160; &#160; carry = 0;&#160;
&#160; &#160; &#160; while (sum[j] > 9){
	sum[j] -= 10;
	carry++;
&#160; &#160; &#160; }
&#160; &#160; }




&#160; &#160; for (j--; j >= 0; j--){
&#160; &#160; &#160; printf("%c", (sum[j] + '0'));
&#160; &#160; }
&#160; &#160; printf("\n");
&#160; }




&#160; return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:2: error: stray '#' in program
   17 | &#160; int n;
      |  ^
main.c:17:1: error: lvalue required as unary '&' operand
   17 | &#160; int n;
      | ^
main.c:18:2: error: stray '#' in program
   18 | &#160; int i, j;
      |  ^
main.c:18:1: error: lvalue required as unary '&' operand
   18 | &#160; int i, j;
      | ^
main.c:19:2: error: stray '#' in program
   19 | &#160; int alen, blen;
      |  ^
main.c:19:1: error: lvalue required as unary '&' operand
   19 | &#160; int alen, blen;
      | ^
main.c:20:2: error: stray '#' in program
   20 | &#160; char ch;
      |  ^
main.c:20:1: error: lvalue required as unary '&' operand
   20 | &#160; char ch;
      | ^
main.c:21:2: error: stray '#' in program
   21 | &#160; int carry;
      |  ^
main.c:21:1: error: lvalue required as unary '&' operand
   21 | &#160; int carry;
      | ^
main.c:22:2: error: stray '#' in program
   22 | &#160;&#160;
      |  ^
main.c:22:1: error: lvalue required as unary '&' operand
   22 | &#160;&#160;
      | ^
main.c:22:8: error: stray '#' in program
   22 | &#160;&#160;
      |        ^
main.c:22:7: error: lvalue required as unary '&' operand
   22 | &#160;&#160;
      |       ^
main.c:23:2: error: stray '#' in program
   23 | &#160; scanf("%d", &n);
      |  ^
main.c:23:1: error: lvalue required as unary '&' operand
   23 | &#160; scanf("%d", &n);
      | ^
main.c:24:2: error: stray '#' in program
   24 | &#160; ch = getchar();
      |  ^
main.c:24:1: error: lvalue required as unary '&' operand
   24 | &#160; ch = getchar();
      | ^
main.c:29:2: error: stray '#' in program
   29 | &#160; for (i = 0; i < n; i++){
      |  ^
main.c:29:1: error: lvalue required as unary '&' operand
   29 | &#160; for (i = 0; i < n; i++){
      | ^
main.c:30:2: error: stray '#' in program
   30 | &#160; &#160; memset(a,0,sizeof(char) * (SIZE));
      |  ^
main.c:30:1: error: lvalue required as unary '&' operand
   30 | &#160; &#160; memset(a,0,sizeof(char) * (SIZE));
      | ^
main.c:30:9: error: stray '#' in program
   30 | &#160; &#160; memset(a,0,sizeof(char) * (SIZE));
      |         ^
main.c:30:8: error: lvalue required as unary '&' operand
   30 | &#160; &#160; memset(a,0,sizeof(char) * (SIZE));
      |        ^
main.c:30:15: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
   30 | &#160; &#160; memset(a,0,sizeof(char) * (SIZE));
      |               ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'memset'
    2 | #include <stdio.h>
  +++ |+#include <string.h>
    3 | #define SIZE 1<<8
main.c:30:15: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
   30 | &#160; &#160; memset(a,0,sizeof(char) * (SIZE));
      |               ^~~~~~
main.c:30:15: note: include '<string.h>' or provide a declaration of 'memset'
main.c:31:2: error: stray '#' in program
   31 | &#160; &#160; memset(b,0,sizeof(char) * (SIZE));
      |  ^
main.c:31:1: error: lvalue required as unary '&' operand
   31 | &#160; &#160; memset(b,0,sizeof(char) * (SIZE));
      | ^
main.c:31:9: error: stray '#' in program
   31 | &#160; &#160; memset(b,0,sizeof(char) * (SIZE));
      |         ^
main.c:31:8: error: lvalue required as unary '&' operand
   31 | &#160; &#160; memset(b,0,sizeof(char) * (SIZE));
      |        ^
main.c:32:2: error: stray '#' in program
   32 | &#160; &#160; memset(sum,0,sizeof(char) * (SIZE + 1));
      |  ^
main.c:32:1: error: lvalue required as unary '&' operand
   32 | &#160; &#160; memset(sum,0,sizeof(char) * (SIZE + 1));
      | ^
main.c:32:9: error: stray '#' in program
   32 | &#160; &#160; memset(sum,0,sizeof(char) * (SIZE + 1));
      |         ^
main.c:32:8: error: lvalue required as unary '&' operand
   32 | &#160; &#160; memset(sum,0,sizeof(char) * (SIZE + 1));
      |        ^
main.c:33:2: error: stray '#' in program
   33 | &#160; &#160;&#160;
      |  ^
main.c:33:1: error: lvalue required as unary '&' operand
   33 | &#160; &#160;&#160;
      | ^
main.c:33:9: error: stray '#' in program
   33 | &#160; &#160;&#160;
      |         ^
main.c:33:8: error: lvalue required as unary '&' operand
   33 | &#160; &#160;&#160;
      |        ^
main.c:33:15: error: stray '#' in program
   33 | &#160; &#160;&#160;
      |               ^
main.c:33:14: error: lvalue required as unary '&' operand
   33 | &#160; &#160;&#160;
      |              ^
main.c:34:2: error: stray '#' in program
   34 | &#160; &#160; /*
      |  ^
main.c:34:1: error: lvalue required as unary '&' operand
   34 | &#160; &#160; /*
      | ^
main.c:34:9: error: stray '#' in program
   34 | &#160; &#160; /*
      |         ^
main.c:34:8: error: lvalue required as unary '&' operand
   34 | &#160; &#160; /*
      |        ^
main.c:42:2: error: stray '#' in program
   42 | &#160; &#160; for (alen = 1; (ch = getchar()) != '\n' ; alen++){
      |  ^
main.c:42:1: error: lvalue required as unary '&' operand
   42 | &#160; &#160; for (alen = 1; (ch = getchar()) != '\n' ; alen++){
      | ^
main.c:42:9: error: stray '#' in program
   42 | &#160; &#160; for (alen = 1; (ch = getchar()) != '\n' ; alen++){
      |         ^
main.c:42:8: error: lvalue required as unary '&' operand
   42 | &#160; &#160; for (alen = 1; (ch = getchar()) != '\n' ; alen++){
      |        ^
main.c:43:2: error: stray '#' in program
   43 | &#160; &#160; &#160; a[alen] = ch - '0';
      |  ^
main.c:43:1: error: lvalue required as unary '&' operand
   43 | &#160; &#160; &#160; a[alen] = ch - '0';
      | ^
main.c:43:9: error: stray '#' in program
   43 | &#160; &#160; &#160; a[alen] = ch - '0';
      |         ^
main.c:43:8: error: lvalue required as unary '&' operand
   43 | &#160; &#160; &#160; a[alen] = ch - '0';
      |        ^
main.c:43:16: error: stray '#' in program
   43 | &#160; &#160; &#160; a[alen] = ch - '0';
      |                ^
main.c:43:15: error: lvalue required as unary '&' operand
   43 | &#160; &#160; &#160; a[alen] = ch - '0';
      |               ^
main.c:44:2: error: stray '#' in program
   44 | &#160; &#160; }
      |  ^
main.c:44:1: error: lvalue required as unary '&' operand
   44 | &#160; &#160; }
      | ^
main.c:44:9: error: stray '#' in program
   44 | &#160; &#160; }
      |         ^
main.c:44:8: error: lvalue required as unary '&' operand
   44 | &#160; &#160; }
      |        ^
main.c:45:2: error: stray '#' in program
   45 | &#160; &#160; for (blen = 1; (ch = getchar()) != '\n' ; blen++){
      |  ^
main.c:45:1: error: lvalue required as unary '&' operand
   45 | &#160; &#160; for (blen = 1; (ch = getchar()) != '\n' ; blen++){
      | ^
main.c:45:9: error: stray '#' in program
   45 | &#160; &#160; for (blen = 1; (ch = getchar()) != '\n' ; blen++){
      |         ^
main.c:45:8: error: lvalue required as unary '&' operand
   45 | &#160; &#160; for (blen = 1; (ch = getchar()) != '\n' ; blen++){
      |        ^
main.c:46:2: error: stray '#' in program
   46 | &#160; &#160; &#160; b[blen] = ch - '0';
      |  ^
main.c:46:1: error: lvalue required as unary '&' operand
   46 | &#160; &#160; &#160; b[blen] = ch - '0';
      | ^
main.c:46:9: error: stray '#' in program
   46 | &#160; &#160; &#160; b[blen] = ch - '0';
      |         ^
main.c:46:8: error: lvalue required as unary '&' operand
   46 | &#160; &#160; &#160; b[blen] = ch - '0';
      |        ^
main.c:46:16: error: stray '#' in program
   46 | &#160; &#160; &#160; b[blen] = ch - '0';
      |                ^
main.c:46:15: error: lvalue required as unary '&' operand
   46 | &#160; &#160; &#160; b[blen] = ch - '0';
      |               ^
main.c:47:2: error: stray '#' in program
   47 | &#160; &#160; }
      |  ^
main.c:47:1: error: lvalue required as unary '&' operand
   47 | &#160; &#160; }
      | ^
main.c:47:9: error: stray '#' in program
   47 | &#160; &#160; }
      |         ^
main.c:47:8: error: lvalue required as unary '&' operand
   47 | &#160; &#160; }
      |        ^
main.c:52:2: error: stray '#' in program
   52 | &#160; &#160; carry = 0;
      |  ^
main.c:52:1: error: lvalue required as unary '&' operand
   52 | &#160; &#160; carry = 0;
      | ^
main.c:52:9: error: stray '#' in program
   52 | &#160; &#160; carry = 0;
      |         ^
main.c:52:8: error: lvalue required as unary '&' operand
   52 | &#160; &#160; carry = 0;
      |        ^
main.c:53:2: error: stray '#' in program
   53 | &#160; &#160; for (j = 0;; j++){
      |  ^
main.c:53:1: error: lvalue required as unary '&' operand
   53 | &#160; &#160; for (j = 0;; j++){
      | ^
main.c:53:9: error: stray '#' in program
   53 | &#160; &#160; for (j = 0;; j++){
      |         ^
main.c:53:8: error: lvalue required as unary '&' operand
   53 | &#160; &#160; for (j = 0;; j++){
      |        ^
main.c:54:2: error: stray '#' in program
   54 | &#160; &#160; &#160; if(alen){
      |  ^
main.c:54:1: error: lvalue required as unary '&' operand
   54 | &#160; &#160; &#160; if(alen){
      | ^
main.c:54:9: error: stray '#' in program
   54 | &#160; &#160; &#160; if(alen){
      |         ^
main.c:54:8: error: lvalue required as unary '&' operand
   54 | &#160; &#160; &#160; if(alen){
      |        ^
main.c:54:16: error: stray '#' in program
   54 | &#160; &#160; &#160; if(alen){
      |                ^
main.c:54:15: error: lvalue required as unary '&' operand
   54 | &#160; &#160; &#160; if(alen){
      |               ^
main.c:56:2: error: stray '#' in program
   56 | &#160; &#160; &#160; }
      |  ^
main.c:56:1: error: lvalue required as unary '&' operand
   56 | &#160; &#160; &#160; }
      | ^
main.c:56:9: error: stray '#' in program
   56 | &#160; &#160; &#160; }
      |         ^
main.c:56:8: error: lvalue required as unary '&' operand
   56 | &#160; &#160; &#160; }
      |        ^
main.c:56:16: error: stray '#' in program
   56 | &#160; &#160; &#160; }
      |                ^
main.c:56:15: error: lvalue required as unary '&' operand
   56 | &#160; &#160; &#160; }
      |               ^
main.c:57:2: error: stray '#' in program
   57 | &#160; &#160; &#160; if(blen){
      |  ^
main.c:57:1: error: lvalue required as unary '&' operand
   57 | &#160; &#160; &#160; if(blen){
      | ^
main.c:57:9: error: stray '#' in program
   57 | &#160; &#160; &#