Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:24: error: expected initializer before 'x'
    7 |         int max_number x;
      |                        ^
/in/foo.cc:8:14: error: 'max_number' was not declared in this scope
    8 |         cin>>max_number x;
      |              ^~~~~~~~~~
/in/foo.cc:11:16: error: 'x' was not declared in this scope
   11 |         cin >> x;
      |                ^
/in/foo.cc:18:14: error: expected '}' at end of input
   18 |     return 0;
      |              ^
/in/foo.cc:4:1: note: to match this '{'
    4 | {
      | ^

信息

递交者
类型
自测
题目
P1775 求最大数
语言
C++
递交时间
2026-07-24 11:30:23
评测时间
2026-07-24 11:30:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes