Compile Error
foo.c: In function 'main': foo.c:12:18: error: 'M' undeclared (first use in this function) 12 | printf("%d", M - k); | ^ foo.c:12:18: note: each undeclared identifier is reported only once for each function it appears in foo.c:12:22: error: 'k' undeclared (first use in this function) 12 | printf("%d", M - k); | ^
Code
#include <stdio.h>
int main()
{
int N ;
int K;
scanf("%d %d", &N, &K);
printf("%d %d",N,K);
printf("%d", M - k);
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1226 Event Registration
- Contest
- LUCC Presents Kick & Code Intra LU Programming Contest
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2025-09-01 05:25:10
- Judged At
- 2025-09-01 05:25:10
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes