为什么编译错误?

P5705 【深基2.例7】数字反转

h19371213 @ 2020-08-07 10:43:50

#include<iostream>
using namespace std;
int a[6],i;
int mian()
{
    for(i=1;i<=5;i++)
    {
        cin>>a[i];
    }
    for(i=5;i>=1;i--)
    {
        cout<<a[i];
    }
    return 0;
}

by Textbook_blasphemy @ 2020-08-07 10:45:55

main打反了


by LucasXu80 @ 2020-08-07 10:46:07

前排兜售烤mian包


by zztqwq @ 2020-08-07 10:46:50

前排兜售烤mian包


by Textbook_blasphemy @ 2020-08-07 10:46:55

而且用cin也不对,建议用getchar();


by ForkΨKillet @ 2020-08-07 10:50:32

5 0 人 实 锤


by _tommysun_ @ 2020-08-07 10:52:52

mian


by Cymbid @ 2020-08-07 10:57:05

#define mian main

by WanderingTrader @ 2020-08-07 11:01:01

前排兜售烤mian包


by AMIRIOX無暝 @ 2020-08-07 11:20:08

前排兜售烤mian包


by newbie666 @ 2020-08-12 14:22:17

main函数,不是mian


| 下一页