Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

C++编译器和GCC编译器都很诡异,害得我不下10次编译出错!!

Posted by zst at 2008-07-07 13:56:08 on Problem 2632
C++编译器 原来自动把变量or,看作了||。郁闷死了。。。
gcc编译器不允许用//做注释。

#include <stdio.h>

int main()
{
  int or, oc;
  scanf("%d%d", &or, &oc);
  printf("%d\n", or+oc);
  return 0;
}
这个程序用C++提交1000会编译错哦!
这个不知道算不算poj C++编译器的一个失败。

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator