Compile Error

foo.cc: In function 'int main()':
foo.cc:11:13: error: expected primary-expression before ')' token
   s=spart(a*)
             ^
foo.cc:11:5: error: 'spart' was not declared in this scope
   s=spart(a*)
     ^~~~~
foo.cc:11:5: note: suggested alternative: 'short'
   s=spart(a*)
     ^~~~~
     short
foo.cc:14:3: error: expected '}' before 'else'
   else if(a==b&&b==c)
   ^~~~
foo.cc: At global scope:
foo.cc:21:2: error: expected unqualified-id before 'else'
  else 
  ^~~~
foo.cc:24:3: error: expected unqualified-id before 'return'
   return 0;
   ^~~~~~
foo.cc:25:1: error: expected declaration before '}' token
 }
 ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1144 只出现一次的数
语言
C++
递交时间
2021-10-24 14:33:19
评测时间
2021-10-24 14:33:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes