Compile Error

foo.cc: In function 'int main()':
foo.cc:12:12: error: 'na' was not declared in this scope; did you mean 'ba'?
   12 |   int ba=b;na=n;//找替身,然后用替身来求最大公约数
      |            ^~
      |            ba
foo.cc:5:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    5 |  freopen("data.txt","r",stdin);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:6:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
    6 |  freopen("ans.txt","w",stdout);
      |  ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1028 A6-3 最大公约数专题:多个分数的加法
语言
C++
递交时间
2022-01-20 11:48:53
评测时间
2022-01-20 11:48:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes