记录详情

Compile Error

foo.c: In function ‘main’:
foo.c:6:9: error: ‘cin’ undeclared (first use in this function)
    6 |         cin>>n;
      |         ^~~
foo.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
foo.c:10:21: error: stray ‘\’ in program
   10 |         while(gai>=4\\ping>=3) {
      |                     ^
foo.c:10:22: error: stray ‘\’ in program
   10 |         while(gai>=4\\ping>=3) {
      |                      ^
foo.c:10:21: error: expected ‘)’ before ‘ping’
   10 |         while(gai>=4\\ping>=3) {
      |              ~      ^ ~~~~
      |                     )
foo.c:27:9: error: ‘cout’ undeclared (first use in this function)
   27 |         cout<<drink<<end1;
      |         ^~~~
foo.c:27:22: error: ‘end1’ undeclared (first use in this function)
   27 |         cout<<drink<<end1;
      |                      ^~~~

信息

递交者
类型
递交
题目
P1087 xf1-10多喝饮料
比赛
南师大(含泰州学院)2024年新生赛(第一场)
语言
C
递交时间
2024-08-18 21:28:14
评测时间
2024-08-18 21:28:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes