记录详情

Compile Error

foo.c:2:0: warning: ignoring #pragma warning  [-Wunknown-pragmas]
 #pragma warning(disable:4996)
 
foo.c:5:11: error: unknown type name 'subject'
 int Solve(subject s, int n, int r, int x);
           ^~~~~~~
foo.c: In function 'main':
foo.c:11:5: error: unknown type name 'subject'
     subject s = politics;
     ^~~~~~~
foo.c:11:5: note: use 'enum' keyword to refer to the type
foo.c:12:13: warning: implicit declaration of function 'Solve' [-Wimplicit-function-declaration]
     int x = Solve(s, n, 1, 0);
             ^~~~~
foo.c: At top level:
foo.c:17:11: error: unknown type name 'subject'
 int Solve(subject s, int n, int r, int x)//r为排第r门
           ^~~~~~~

自豪的采用jd5进行评测(github.com/masnn/jd5)

信息

递交者
类型
递交
题目
P1120 文科生的悲哀
语言
C
递交时间
2020-02-02 13:25:06
评测时间
2020-02-02 13:25:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes