Compile Error

foo.cc:3:7: error: expected nested-name-specifier before 'namespase'
 using namespase std;
       ^~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:8:2: error: 'cin' was not declared in this scope
  cin>>n;
  ^~~
foo.cc:8:2: note: suggested alternative:
In file included from foo.cc:1:0:
/usr/include/c++/7/iostream:60:18: note:   'std::cin'
   extern istream cin;  /// Linked to standard input
                  ^~~
foo.cc:14:4: error: 'flag' was not declared in this scope
    flag=1;
    ^~~~
foo.cc:14:4: note: suggested alternative: 'fiag'
    flag=1;
    ^~~~
    fiag
foo.cc:19:5: error: 'flag' was not declared in this scope
  if(flag==0)
     ^~~~
foo.cc:19:5: note: suggested alternative: 'fiag'
  if(flag==0)
     ^~~~
     fiag
foo.cc:21:3: error: 'cout' was not declared in this scope
   cout<<"Yes";
   ^~~~
foo.cc:21:3: note: suggested alternative:
In file included from foo.cc:1:0:
/usr/include/c++/7/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^~~~
foo.cc:24:3: error: 'cout' was not declared in this scope
   cout<<"No"
   ^~~~
foo.cc:24:3: note: suggested alternative:
In file included from foo.cc:1:0:
/usr/include/c++/7/iostream:61:18: note:   'std::cout'
   extern ostream cout;  /// Linked to standard output
                  ^~~~
foo.cc:7:13: warning: unused variable 'fiag' [-Wunused-variable]
     int n,m,fiag=0;
             ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1095 同构数
语言
C++
递交时间
2021-11-14 16:13:10
评测时间
2021-11-14 16:13:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes