/ XMU_ACM /

记录详情

Compile Error

/in/foo.cc: In function 'void fint2(int, int)':
/in/foo.cc:12:20: warning: statement has no effect [-Wunused-value]
            yes[ans]==1;
            ~~~~~~~~^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:64:16: error: 'i' was not declared in this scope
        if(anso[i]>n)break;
                ^
/in/foo.cc:64:19: error: 'n' was not declared in this scope
        if(anso[i]>n)break;
                   ^
/in/foo.cc:64:21: error: break statement not within loop or switch
        if(anso[i]>n)break;
                     ^~~~~
/in/foo.cc:65:8: error: 'sum' was not declared in this scope
        sum++;
        ^~~
/in/foo.cc: At global scope:
/in/foo.cc:69:4: error: 'cin' does not name a type
    cin>>n;
    ^~~
/in/foo.cc:70:4: error: expected unqualified-id before 'for'
    for(int wei=3;wei<=9;wei++)
    ^~~
/in/foo.cc:70:18: error: 'wei' does not name a type
    for(int wei=3;wei<=9;wei++)
                  ^~~
/in/foo.cc:70:25: error: 'wei' does not name a type
    for(int wei=3;wei<=9;wei++)
                         ^~~
/in/foo.cc:74:8: error: expected constructor, destructor, or type conversion before '(' token
    sort(anso+1,anso+ansi);
        ^
/in/foo.cc:76:4: error: expected unqualified-id before 'for'
    for(int i=1;i<=ansi-1;i++)
    ^~~
/in/foo.cc:76:16: error: 'i' does not name a type
    for(int i=1;i<=ansi-1;i++)
                ^
/in/foo.cc:76:26: error: 'i' does not name a type
    for(int i=1;i<=ansi-1;i++)
                          ^

信息

递交者
类型
自测
题目
P1019 刘学习的753数
语言
C++
递交时间
2019-04-20 13:49:46
评测时间
2019-04-20 13:49:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes