记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:1: error: 'fin' was not declared in this scope
 fin>>s1>>s2;
 ^~~
/in/foo.cc:5:1: note: suggested alternative: 'main'
 fin>>s1>>s2;
 ^~~
 main
/in/foo.cc:8:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 for(int i=0;i<=s1.length();i++)
             ~^~~~~~~~~~~~~
/in/foo.cc:10:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 for(int i=0;i<=s2.length();i++)
             ~^~~~~~~~~~~~~
/in/foo.cc:13:1: error: 'fout' was not declared in this scope
 fout<<"GO";
 ^~~~
/in/foo.cc:13:1: note: suggested alternative: 'fcvt'
 fout<<"GO";
 ^~~~
 fcvt
/in/foo.cc:15:1: error: 'fout' was not declared in this scope
 fout<<"STAY";
 ^~~~
/in/foo.cc:15:1: note: suggested alternative: 'fcvt'
 fout<<"STAY";
 ^~~~
 fcvt

信息

递交者
类型
递交
题目
USACO1.1.1 Your Ride Is Here 你的飞碟在这儿
语言
C++
递交时间
2018-10-26 20:58:25
评测时间
2018-10-26 20:58:25
评测机
分数
0
总耗时
291ms
峰值内存
33.941 MiB