/ Vijos /

记录详情

Compile Error

foo.cpp:1:1: error: 'include' does not name a type
 include<iostream>
 ^
foo.cpp: In function 'int gys(int, int)':
foo.cpp:4:16: error: 'swap' was not declared in this scope
 if(x>y)swap(x,y);
                ^
foo.cpp: In function 'int gbs(int, int)':
foo.cpp:9:16: error: 'swap' was not declared in this scope
 if(x>y)swap(x,y);
                ^
foo.cpp:11:7: error: 'yt' was not declared in this scope
 while(yt%x!=0)t++;
       ^
foo.cpp:12:8: error: 'ty' was not declared in this scope
 return ty;
        ^
foo.cpp: In function 'int main()':
foo.cpp:17:1: error: 'cin' was not declared in this scope
 cin>>x>>y;
 ^
foo.cpp:24:1: error: 'cout' was not declared in this scope
 cout<<count<<endl;
 ^
foo.cpp:24:14: error: 'endl' was not declared in this scope
 cout<<count<<endl;
              ^
foo.cpp: In function 'int gbs(int, int)':
foo.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
P1131 最小公倍数和最大公约数问题
语言
C++
递交时间
2014-10-06 10:59:52
评测时间
2014-10-06 10:59:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes