Compile Error

foo.cc: In function 'int main()':
foo.cc:5:9: error: expected unqualified-id before numeric constant
     int 0<=x;
         ^
foo.cc:6:7: error: expected initializer before '<=' token
  int y<=32767;
       ^~
foo.cc:7:2: error: 'cout' was not declared in this scope
  cout<<x+y<<endl;
  ^~~~
foo.cc:7:8: error: 'x' was not declared in this scope
  cout<<x+y<<endl;
        ^
foo.cc:7:10: error: 'y' was not declared in this scope
  cout<<x+y<<endl;
          ^
foo.cc:7:13: error: 'endl' was not declared in this scope
  cout<<x+y<<endl;
             ^~~~
foo.cc:7:13: note: suggested alternative: 'enum'
  cout<<x+y<<endl;
             ^~~~
             enum
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1207 a+b
语言
C++
递交时间
2021-09-01 13:31:47
评测时间
2021-09-01 13:31:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes