主题:[讨论]到浙江大学ACM去了一趟……
去看了一下,做了1002,在本地使用TurboC运行成功,题目给的样例输入和我自己想的几个输入都能得到正确结果,但提交过去,编译出错。而且也不属于FAQ中说的那四条:
main must be declared as int , void main will end up with a Compile Error.
i is out of definition after block " for ( int i =0...){...}"
itoa is not an ANSI function.
__int64 of VC is not ANSI, but you can use long long for 64-bit integer.
编译给出的错误信息为:
1213071.c: In function `canset':
1213071.c:60: error: parse error before '/' token
1213071.c: At top level:
1213071.c:69: error: parse error before "return"
我从来没遇到类似错误,不知哪位朋友能解释一下?
想想实在很郁闷啊,明明很可能就是正确结果了的说。我可怜的正确率啊……如果能在装上同样的编译器就没这些烦恼了。
main must be declared as int , void main will end up with a Compile Error.
i is out of definition after block " for ( int i =0...){...}"
itoa is not an ANSI function.
__int64 of VC is not ANSI, but you can use long long for 64-bit integer.
编译给出的错误信息为:
1213071.c: In function `canset':
1213071.c:60: error: parse error before '/' token
1213071.c: At top level:
1213071.c:69: error: parse error before "return"
我从来没遇到类似错误,不知哪位朋友能解释一下?
想想实在很郁闷啊,明明很可能就是正确结果了的说。我可怜的正确率啊……如果能在装上同样的编译器就没这些烦恼了。