/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int msum(int, int)':
foo.cpp:7:23: error: 'stdin' was not declared in this scope
 freopen("mine.in","r",stdin);    
                       ^
foo.cpp:7:28: error: 'freopen' was not declared in this scope
 freopen("mine.in","r",stdin);    
                            ^
foo.cpp:8:24: error: 'stdout' was not declared in this scope
 freopen("mine.out","w",stdout); 
                        ^
foo.cpp: In function 'int main()':
foo.cpp:35:14: error: 'stdin' was not declared in this scope
       fclose(stdin);fclose(stdout); 
              ^
foo.cpp:35:19: error: 'fclose' was not declared in this scope
       fclose(stdin);fclose(stdout); 
                   ^
foo.cpp:35:28: error: 'stdout' was not declared in this scope
       fclose(stdin);fclose(stdout); 
                            ^
foo.cpp:21:10: warning: unused variable 'd' [-Wunused-variable]
 {int b,c,d,e,f,g;
          ^
foo.cpp:21:12: warning: unused variable 'e' [-Wunused-variable]
 {int b,c,d,e,f,g;
            ^
foo.cpp:21:14: warning: unused variable 'f' [-Wunused-variable]
 {int b,c,d,e,f,g;
              ^
foo.cpp:21:16: warning: unused variable 'g' [-Wunused-variable]
 {int b,c,d,e,f,g;
                ^

信息

递交者
类型
递交
题目
P1975 扫雷游戏
语言
C++
递交时间
2015-11-15 21:36:20
评测时间
2015-11-15 21:36:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes