Compile Error

foo.cc: In function ‘int main()’:
foo.cc:7:13: error: expected ‘;’ before ‘while’
    7 |         nt=n
      |             ^
      |             ;
    8 |         while(nt!=0)
      |         ~~~~~
foo.cc:13:12: error: ‘x’ was not declared in this scope
   13 |         if(x==n)
      |            ^
foo.cc:5:15: warning: unused variable ‘sum’ [-Wunused-variable]
    5 |         int n,sum=0,y,nt;
      |               ^~~
foo.cc:5:21: warning: unused variable ‘y’ [-Wunused-variable]
    5 |         int n,sum=0,y,nt;
      |                     ^

信息

递交者
类型
递交
语言
C++
递交时间
2024-05-03 14:02:00
评测时间
2024-05-03 14:02:00
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes