/ 大熊 /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int*' [-Wformat=]
     printf ("%d\n",&t);
                      ^
/in/foo.cc:8:35: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int*' [-Wformat=]
            printf ("%d\nO%d",&n,&n);
                                   ^
/in/foo.cc:8:35: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int*' [-Wformat=]
/in/foo.cc:9:33: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int*' [-Wformat=]
     printf ("F\n%d%d%d",&n,&x,&y);
                                 ^
/in/foo.cc:9:33: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int*' [-Wformat=]
/in/foo.cc:9:33: warning: format '%d' expects argument of type 'int', but argument 4 has type 'int*' [-Wformat=]
/in/foo.cc:10:22: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int*' [-Wformat=]
     printf ("%d\n",&E);}
                      ^
/in/foo.cc:11:13: warning: comparison of constant '10' with boolean expression is always true [-Wbool-compare]
     if (1<=t<=10);
         ~~~~^~~~
/in/foo.cc:11:10: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
     if (1<=t<=10);
         ~^~~
/in/foo.cc:15:8: error: expected '(' before '{' token
     for{if ((n^n)!=(n));
        ^
/in/foo.cc:15:8: error: expected primary-expression before '{' token
/in/foo.cc:24:6: error: expected primary-expression before '}' token
     }}
      ^
/in/foo.cc:24:6: error: expected ';' before '}' token
/in/foo.cc:24:6: error: expected primary-expression before '}' token
/in/foo.cc:24:6: error: expected ')' before '}' token
/in/foo.cc:24:6: error: expected primary-expression before '}' token
/in/foo.cc:5:11: warning: unused variable 'L' [-Wunused-variable]
     int t,L,i,x,y,n,E;
           ^
/in/foo.cc:5:13: warning: unused variable 'i' [-Wunused-variable]
     int t,L,i,x,y,n,E;
             ^

信息

递交者
类型
递交
题目
complexity
语言
C++
递交时间
2017-11-21 21:53:21
评测时间
2017-11-21 21:53:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes