/ CWOI /

记录详情

Compile Error

/in/foo.cc:54:25: error: stray '#' in program
     l=max(l,max(r1,r2));#include<cstdio>
                         ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:54:26: error: 'include' was not declared in this scope
     l=max(l,max(r1,r2));#include<cstdio>
                          ^~~~~~~
/in/foo.cc:54:34: error: 'cstdio' was not declared in this scope
     l=max(l,max(r1,r2));#include<cstdio>
                                  ^~~~~~
/in/foo.cc:63:1: error: expected primary-expression before 'using'
 using namespace std;
 ^~~~~
/in/foo.cc:69:32: error: a function-definition is not allowed here before '{' token
 ll exgcd(ll a,ll b,ll &x,ll &y){
                                ^
/in/foo.cc:65:4: warning: unused variable 'm1' [-Wunused-variable]
 ll m1,m2,r1,r2,l,r;
    ^~
/in/foo.cc:65:7: warning: unused variable 'm2' [-Wunused-variable]
 ll m1,m2,r1,r2,l,r;
       ^~
/in/foo.cc:65:10: warning: unused variable 'r1' [-Wunused-variable]
 ll m1,m2,r1,r2,l,r;
          ^~
/in/foo.cc:65:13: warning: unused variable 'r2' [-Wunused-variable]
 ll m1,m2,r1,r2,l,r;
             ^~
/in/foo.cc:65:16: warning: unused variable 'l' [-Wunused-variable]
 ll m1,m2,r1,r2,l,r;
                ^
/in/foo.cc:65:18: warning: unused variable 'r' [-Wunused-variable]
 ll m1,m2,r1,r2,l,r;
                  ^
/in/foo.cc:67:4: warning: unused variable 'ans1' [-Wunused-variable]
 ll ans1,ans2;
    ^~~~
/in/foo.cc:67:9: warning: unused variable 'ans2' [-Wunused-variable]
 ll ans1,ans2;
         ^~~~
/in/foo.cc:127:1: error: expected '}' at end of input
 }
 ^

信息

递交者
类型
递交
题目
2017.07.10 P1 算术级数
语言
C++
递交时间
2017-07-10 20:30:56
评测时间
2017-07-10 20:30:56
评测机
分数
0
总耗时
295ms
峰值内存
35.871 MiB