记录详情

Compile Error

/in/foo.cc:3:14: error: expected unqualified-id before 'long'
 #define int (long long int)
              ^
/in/foo.cc:4:1: note: in expansion of macro 'int'
 int gcd(int a,int b){
 ^~~
/in/foo.cc:3:14: error: expected ')' before 'long'
 #define int (long long int)
              ^
/in/foo.cc:4:1: note: in expansion of macro 'int'
 int gcd(int a,int b){
 ^~~
/in/foo.cc:3:14: error: expected unqualified-id before 'long'
 #define int (long long int)
              ^
/in/foo.cc:7:1: note: in expansion of macro 'int'
 int lcm(int a,int b){
 ^~~
/in/foo.cc:3:14: error: expected ')' before 'long'
 #define int (long long int)
              ^
/in/foo.cc:7:1: note: in expansion of macro 'int'
 int lcm(int a,int b){
 ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:11:6: error: 'a' was not declared in this scope
  int a,b;
      ^
/in/foo.cc:11:8: error: 'b' was not declared in this scope
  int a,b;
        ^
/in/foo.cc:13:15: error: 'lcm' was not declared in this scope
  cout<<lcm(a,b);
               ^

信息

递交者
类型
递交
题目
P1009 最小公倍数
语言
C++
递交时间
2024-10-22 22:09:49
评测时间
2024-10-22 22:09:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes