/ Vijos /

记录详情

Compile Error

foo.cpp:3:7: error: expected nested-name-specifier before 'namesapce'
 using namesapce std;
       ^
foo.cpp:3:7: error: 'namesapce' has not been declared
foo.cpp:3:17: error: expected ';' before 'std'
 using namesapce std;
                 ^
foo.cpp:3:17: error: 'std' does not name a type
foo.cpp: In function 'int main()':
foo.cpp:9:2: error: 'cin' was not declared in this scope
  cin>>N;
  ^
foo.cpp:9:2: 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
                  ^
foo.cpp:12:2: error: 'cout' was not declared in this scope
  cout<<"Imposible"<<endl;
  ^
foo.cpp:12:2: 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:12:21: error: 'endl' was not declared in this scope
  cout<<"Imposible"<<endl;
                     ^
foo.cpp:12:21: note: suggested alternative:
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\iostream:39:0,
                 from foo.cpp:1:
c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\ostream:564:5: note:   'std::endl'
     endl(basic_ostream<_CharT, _Traits>& __os)
     ^

信息

递交者
类型
递交
题目
P1037 搭建双塔
语言
C++
递交时间
2016-11-06 17:10:06
评测时间
2016-11-06 17:10:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes