/ SeriousOJ /

Record Detail

Compile Error

foo.c: In function 'main':
foo.c:9:24: error: missing terminating " character
    9 |                 printf("(I love programming);
      |                        ^~~~~~~~~~~~~~~~~~~~~~
foo.c:10:31: error: expected ')' before ';' token
   10 |                            i++;
      |                               ^
      |                               )
foo.c:9:23: note: to match this '('
    9 |                 printf("(I love programming);
      |                       ^
foo.c:10:32: error: expected ';' before '}' token
   10 |                            i++;
      |                                ^
      |                                ;
   11 |                            }
      |                            ~    

Code

#include <stdio.h>

int main()
{
	int n;
	scanf("%d",&n);
	int i=0;
	while(i<=n){
		printf("(I love programming);
			   i++;
			   }
			   printf("\n");
    //printf("hello, world\n");
			   return 0;
}

Information

Submit By
Type
Submission
Problem
P1018 Show your dedication
Contest
Brain booster - 1
Language
C99 (GCC 13.2.0)
Submit At
2023-12-31 13:24:22
Judged At
2024-10-03 14:06:39
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes