Compile Error

foo.cc: In function 'int main()':
foo.cc:5:59: error: invalid operands of types 'const char [21]' and '<unresolved overloaded function type>' to binary 'operator<<'
    5 |  cout<<"123 153 183 213 243 "<<endl;"273 303 333 363 393 "<<endl;"423 453 483 513 543 "<<endl;"573 603 633 663 693 "<<endl;"723 753 783 813 843 "<<endl;"873 903 933 963 993 "<<endl;
      |                                     ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
foo.cc:5:88: error: invalid operands of types 'const char [21]' and '<unresolved overloaded function type>' to binary 'operator<<'
    5 |  cout<<"123 153 183 213 243 "<<endl;"273 303 333 363 393 "<<endl;"423 453 483 513 543 "<<endl;"573 603 633 663 693 "<<endl;"723 753 783 813 843 "<<endl;"873 903 933 963 993 "<<endl;
      |                                                                  ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
foo.cc:5:117: error: invalid operands of types 'const char [21]' and '<unresolved overloaded function type>' to binary 'operator<<'
    5 |  cout<<"123 153 183 213 243 "<<endl;"273 303 333 363 393 "<<endl;"423 453 483 513 543 "<<endl;"573 603 633 663 693 "<<endl;"723 753 783 813 843 "<<endl;"873 903 933 963 993 "<<endl;
      |                                                                                               ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
foo.cc:5:146: error: invalid operands of types 'const char [21]' and '<unresolved overloaded function type>' to binary 'operator<<'
    5 |  cout<<"123 153 183 213 243 "<<endl;"273 303 333 363 393 "<<endl;"423 453 483 513 543 "<<endl;"573 603 633 663 693 "<<endl;"723 753 783 813 843 "<<endl;"873 903 933 963 993 "<<endl;
      |                                                                                                                            ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
foo.cc:5:175: error: invalid operands of types 'const char [21]' and '<unresolved overloaded function type>' to binary 'operator<<'
    5 |  cout<<"123 153 183 213 243 "<<endl;"273 303 333 363 393 "<<endl;"423 453 483 513 543 "<<endl;"573 603 633 663 693 "<<endl;"723 753 783 813 843 "<<endl;"873 903 933 963 993 "<<endl;
      |                                                                                                                                                         ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1051 满足条件的3位数
语言
C++
递交时间
2022-07-10 20:06:11
评测时间
2022-07-10 20:06:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes