- 建议
- 2015-01-08 16:38:27 @
因为本人是学c++的,但是期间参杂有一些c语言的语法,建议c和c++的两种语言的限制宽松一点,例如只要在编译器上能过就行了。
6 条评论
-
DavidDeng LV 8 @ 2015-01-18 13:18:25
##__C++可以用C的语法呀?!__##
##你试一试这样:###include <iostream> /*C++标准输入输出流*/
#include <cstdio> /*C标准输入输出流*/
using namespace std;
int main() {
int a,b;
scanf("%d%d",&a,&b);
printf("%d\n",a+b);
return 0;
}##__评测结果如下:__##
__ 编译成功__
测试数据 #0: Accepted, time = 0 ms, mem = 280 KiB, score = 10
测试数据 #1: Accepted, time = 0 ms, mem = 280 KiB, score = 10
测试数据 #2: Accepted, time = 0 ms, mem = 280 KiB, score = 10
测试数据 #3: Accepted, time = 15 ms, mem = 280 KiB, score = 10
测试数据 #4: Accepted, time = 0 ms, mem = 280 KiB, score = 10
测试数据 #5: Accepted, time = 0 ms, mem = 276 KiB, score = 10
测试数据 #6: Accepted, time = 0 ms, mem = 276 KiB, score = 10
测试数据 #7: Accepted, time = 0 ms, mem = 276 KiB, score = 10
测试数据 #8: Accepted, time = 0 ms, mem = 276 KiB, score = 10
测试数据 #9: Accepted, time = 0 ms, mem = 276 KiB, score = 10
##__ Accepted, time = 15 ms, mem = 280 KiB, score = 100__## -
2015-01-17 15:59:39@
我猜你没有包含 cstdio 头文件……或者 stdio.h 也行……
-
2015-01-17 14:45:12@
请注意更新本地编译器版本
-
2015-01-17 11:39:40@
用的是dev-cpp吗?
-
2015-01-10 13:15:25@
本来就是编译器能过,vijos就可以过,除非你要干坏事。
-
2015-01-08 19:42:27@
本来就可以的0 0
- 1