/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:6:1: error: 'cin' was not declared in this scope
 cin>>s>>t>>w;
 ^
foo.cpp:6:1: note: suggested alternative:
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\mingw32\bits\stdc++.h:74:0,
                 from foo.cpp:1:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^
foo.cpp:23:3: error: 'cout' was not declared in this scope
   cout<<a[j];
   ^
foo.cpp:23:3: note: suggested alternative:
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\mingw32\bits\stdc++.h:74:0,
                 from foo.cpp:1:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^

信息

递交者
类型
递交
题目
P1318 Jam的计数法
语言
C++
递交时间
2016-10-26 15:27:19
评测时间
2016-10-26 15:27:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes