为什么CE?

P2433 【深基1-2】小学数学 N 合一

polandball @ 2022-02-20 15:48:06

#include <bits/stdc++.h>
using namespace std;

int main(){
    int n;
    scanf("%d",&n);

    if(n == 1)
    {
        cout<<"I love Luogu!";
    }
    else if(n == 2)
    {
        cout<<6<<" "<<4;
    }
    else if(n == 3)
    {
        cout<<3<<endl<<12<<endl<<2;
    }
    else if(n == 4)
    {
        cout<<166.666667<<endl;
    }
    else if(n == 5)
    {
        cout<<15;
    }
    else if(n == 6)
    {
        cout<<10.8167<<endl;
    }
    else if(n == 7)
    {
        cout<<110<<endl<<90<<endl<<0;
    }
    else if(n == 8)
    {
        cout<<cout<<31.41593<<endl<<78.539825<<endl<<523.59883333333333333333333333333;
    }
    else if(n == 9)
    {
        int ret;
        cin>>ret;
        cout<<22<<endl;
    }
    else if(n == 10)
    {
       cout<<9<<endl;
    }
    else if(n == 11)
    {
        cout<<33.333333<<endl;
    }
    else if(n == 12)
    {
        cout<<13<<endl<<"R";
    }
    else if(n == 13)
    {
        cout<<16<<endl;  
    }
    else if(n == 14)
    {
        cout<<50<<endl;
    }
    return 0;
}

by 冬天的雨 @ 2022-02-20 15:50:17

 else if(n == 8)
    {
        cout<<cout<<31.41593<<endl<<78.539825<<endl<<523.59883333333333333333333333333;
    }

这里有错误@polandball


by 冬天的雨 @ 2022-02-20 15:50:32

多写了一个cout


by polandball @ 2022-02-20 15:52:16

谢谢!!


|