/ Vijos /

记录详情

Compile Error

/in/foo.c:1:1: error: unknown type name 'using'
 using namespace std;
 ^~~~~
/in/foo.c:1:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
 using namespace std;
                 ^~~
/in/foo.c:2:1: error: unknown type name 'll'
 ll getll()
 ^~
/in/foo.c: In function 'getll':
/in/foo.c:4:1: error: unknown type name 'll'
 ll res=0;
 ^~
/in/foo.c:5:8: warning: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
 char c=getchar();
        ^~~~~~~
/in/foo.c:6:1: error: unknown type name 'bool'; did you mean '_Bool'?
 bool mi=false;
 ^~~~
 _Bool
/in/foo.c:6:9: error: 'false' undeclared (first use in this function)
 bool mi=false;
         ^~~~~
/in/foo.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:7:29: warning: implicit declaration of function 'feof' [-Wimplicit-function-declaration]
 while( (c<'0' || c>'9') && !feof(stdin) ) mi=(c=='-'),c=getchar();
                             ^~~~
/in/foo.c:7:34: error: 'stdin' undeclared (first use in this function)
 while( (c<'0' || c>'9') && !feof(stdin) ) mi=(c=='-'),c=getchar();
                                  ^~~~~
/in/foo.c: At top level:
/in/foo.c:11:7: error: unknown type name 'll'
 const ll INF=(ll(1)<<56)-1;
       ^~
/in/foo.c:11:15: warning: implicit declaration of function 'll' [-Wimplicit-function-declaration]
 const ll INF=(ll(1)<<56)-1;
               ^~
/in/foo.c:11:20: warning: left shift count >= width of type [-Wshift-count-overflow]
 const ll INF=(ll(1)<<56)-1;
                    ^~
/in/foo.c:11:14: error: initializer element is not constant
 const ll INF=(ll(1)<<56)-1;
              ^
/in/foo.c:13:1: error: unknown type name 'll'
 ll a[205000];
 ^~
/in/foo.c:14:1: error: unknown type name 'bool'; did you mean '_Bool'?
 bool able(ll dst)
 ^~~~
 _Bool
/in/foo.c:14:11: error: expected declaration specifiers or '...' before 'll'
 bool able(ll dst)
           ^~
/in/foo.c: In function 'main':
/in/foo.c:26:7: warning: implicit declaration of function 'getint'; did you mean 'getll'? [-Wimplicit-function-declaration]
 int T=getint();
       ^~~~~~
       getll
/in/foo.c:32:1: warning: statement with no effect [-Wunused-value]
 ll l=0,r=INF;
 ^~
/in/foo.c:32:4: error: expected ';' before 'l'
 ll l=0,r=INF;
    ^
/in/foo.c:34:7: error: 'l' undeclared (first use in this function)
 while(l<r-1)
       ^
/in/foo.c:34:9: error: 'r' undeclared (first use in this function)
 while(l<r-1)
         ^
/in/foo.c:36:1: warning: statement with no effect [-Wunused-value]
 ll mid=(l+r)>>1;
 ^~
/in/foo.c:36:4: error: expected ';' before 'mid'
 ll mid=(l+r)>>1;
    ^~~
/in/foo.c:37:4: warning: implicit declaration of function 'able' [-Wimplicit-function-declaration]
 if(able(mid)) r=mid;
    ^~~~
/in/foo.c:37:9: error: 'mid' undeclared (first use in this function); did you mean 'main'?
 if(able(mid)) r=mid;
         ^~~
         main
/in/foo.c:42:1: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 printf("%I64d\n",l);
 ^~~~~~
/in/foo.c:42:1: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:42:1: note: include '<stdio.h>' or provide a declaration of 'printf'

信息

递交者
类型
递交
题目
P1763 Wormhole
语言
C
递交时间
2017-10-01 14:14:05
评测时间
2017-10-01 14:14:05
评测机
分数
0
总耗时
22ms
峰值内存
2.898 MiB