初学C++,求差错

P1001 A+B Problem

GTfct @ 2020-01-17 12:16:18

#include<iostream>
using namespace std;
int main(){
    int a,b;
    cin>>a>>b;
    printf("%d",a+b);
    return 0;
}

CE了?


by ShineEternal @ 2020-01-17 12:19:32

@GTfct 头文件


by Stick_With_Mars @ 2020-01-17 12:19:46

@GTfct

printf("%d",a+b);

改为

cout<<a+b<<endl;

by Rainy7 @ 2020-01-17 12:19:47

有点假


by GTfct @ 2020-01-17 12:24:31

好的谢谢


by Happy_Orca @ 2020-01-17 12:28:34

@GTfct #include<bits/stdc++.h>了解一下


by Yukinoshita_Yukino @ 2020-01-17 12:29:18

@GTfct 尼是怎么做到a了一道黑题A+B还不会的QAQ


by awa再也不水贴 @ 2020-01-17 12:31:47

@liuziming P党转C党


by Kirie_LingKui @ 2020-01-17 12:32:04

AK完IOI重新来过了??


by GTfct @ 2020-01-17 13:04:10

@xiaojie233a 怀念我的Pascal


by awa再也不水贴 @ 2020-01-17 13:10:01

@GTfct C++有不会的可以找我(虽然我也有很多不会的


| 下一页