/ Vijos /

记录详情

Compile Error

foo.cpp:45:2: error: stray '#' in program
 }#include<cstdio>
  ^
foo.cpp: In function 'bool hz(long long int, int)':
foo.cpp:10:6: warning: unused variable 't' [-Wunused-variable]
  int t;
      ^
foo.cpp: At global scope:
foo.cpp:45:3: error: 'include' does not name a type
 }#include<cstdio>
   ^
foo.cpp:49:5: error: redefinition of 'int x'
 int x,y,s;
     ^
foo.cpp:5:5: error: 'int x' previously declared here
 int x,y,s;
     ^
foo.cpp:49:7: error: redefinition of 'int y'
 int x,y,s;
       ^
foo.cpp:5:7: error: 'int y' previously declared here
 int x,y,s;
       ^
foo.cpp:49:9: error: redefinition of 'int s'
 int x,y,s;
         ^
foo.cpp:5:9: error: 'int s' previously declared here
 int x,y,s;
         ^
foo.cpp:50:11: error: redefinition of 'long long int n'
 long long n;
           ^
foo.cpp:6:11: error: 'long long int n' previously declared here
 long long n;
           ^
foo.cpp: In function 'bool hz(long long int, int)':
foo.cpp:52:6: error: redefinition of 'bool hz(long long int, int)'
 bool hz(long long X,int Y)
      ^
foo.cpp:8:6: error: 'bool hz(long long int, int)' previously defined here
 bool hz(long long X,int Y)
      ^
foo.cpp:54:6: warning: unused variable 't' [-Wunused-variable]
  int t;
      ^
foo.cpp: In function 'int main()':
foo.cpp:71:5: error: redefinition of 'int main()'
 int main()
     ^
foo.cpp:27:5: error: 'int main()' previously defined here
 int main()
     ^

信息

递交者
类型
递交
题目
P1131 最小公倍数和最大公约数问题
语言
C++
递交时间
2016-07-29 21:41:53
评测时间
2016-07-29 21:41:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes