/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'void OUTPUT(bool)':
foo.cpp:4:12: error: 'cout' was not declared in this scope
      if(a) cout<<"Matrix67\n";
            ^
foo.cpp:4:12: note: suggested alternative:
In file included from foo.cpp:1:0:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
foo.cpp:5:11: error: 'cout' was not declared in this scope
      else cout<<"Shadow\n";
           ^
foo.cpp:5:11: note: suggested alternative:
In file included from foo.cpp:1:0:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
foo.cpp: In function 'int main()':
foo.cpp:16:5: error: 'cin' was not declared in this scope
     cin<<a<<b;
     ^
foo.cpp:16:5: note: suggested alternative:
In file included from foo.cpp:1:0:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^

信息

递交者
类型
递交
题目
P1196 吃糖果游戏
语言
C++
递交时间
2016-10-27 14:10:13
评测时间
2016-10-27 14:10:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes