/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:7:5: error: 'cin' was not declared in this scope
     cin>>s;
     ^
foo.cpp:7:5: note: suggested alternative:
In file included from foo.cpp:1:0:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^
foo.cpp:11:9: error: 'cout' was not declared in this scope
         cout<<"F";
         ^
foo.cpp:11:9: note: suggested alternative:
In file included from foo.cpp:1:0:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
foo.cpp:21:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     while(j<strlen(s) && s[j]!='.') j++;
            ^
foo.cpp:25:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if(j==strlen(s)+1) cout<<"0";
         ^
foo.cpp:25:24: error: 'cout' was not declared in this scope
     if(j==strlen(s)+1) cout<<"0";
                        ^
foo.cpp:25:24: note: suggested alternative:
In file included from foo.cpp:1:0:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
foo.cpp:37:26: error: 'cout' was not declared in this scope
                          cout<<"0";
                          ^
foo.cpp:37:26: note: suggested alternative:
In file included from foo.cpp:1:0:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
foo.cpp:38:26: error: 'cout' was not declared in this scope
                          cout<<s[j-k];
                          ^
foo.cpp:38:26: note: suggested alternative:
In file included from foo.cpp:1:0:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
foo.cpp:46:38: error: 'cout' was not declared in this scope
                          if((!b)&&v) cout<<"0";
                                      ^
foo.cpp:46:38: note: suggested alternative:
In file included from foo.cpp:1:0:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
foo.cpp:47:26: error: 'cout' was not declared in this scope
                          cout<<s[j-k]<<"S";
                          ^
foo.cpp:47:26: note: suggested alternative:
In file included from foo.cpp:1:0:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
foo.cpp:56:26: error: 'cout' was not declared in this scope
                          cout<<"0";
                          ^
foo.cpp:56:26: note: suggested alternative:
In file included from foo.cpp:1:0:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
foo.cpp:57:26: error: 'cout' was not declared in this scope
                          cout<<s[j-k]<<"B";
                          ^
foo.cpp:57:26: note: suggested alternative:
In file included from foo.cpp:1:0:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
foo.cpp:65:26: error: 'cout' was not declared in this scope
                          cout<<s[j-k]<<"Q";
                          ^
foo.cpp:65:26: note: suggested alternative:
In file included from foo.cpp:1:0:
C:/TDM-GCC-32/lib/gcc/mingw32/4.9.2/include/c++/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^
foo.cpp:72:39: error: 'cout' was not declared in this scope

信息

递交者
类型
递交
题目
P1230 数的朗读
语言
C++
递交时间
2015-10-05 21:27:44
评测时间
2015-10-05 21:28:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes