Compile Error
foo.c: In function 'main': foo.c:7:4: error: 'sum' undeclared (first use in this function) 7 | sum = N + 2 + 1 + 1; | ^~~ foo.c:7:4: note: each undeclared identifier is reported only once for each function it appears in
Code
#include <stdio.h>
int main()
{
int N;
scanf("%d &N");
sum = N + 2 + 1 + 1;
if (N<=100) {
printf("%d",sum);
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1176 Free chocolate
- Contest
- Intra LU IEEE Beginner Programming Contest
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2025-02-26 07:07:42
- Judged At
- 2025-02-26 07:07:42
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes