记录详情

Compile Error

foo.cc: In function ‘int main()’:
foo.cc:6:9: error: ‘cin’ was not declared in this scope
    6 |         cin>>b1>>a1>>b2>>a2;
      |         ^~~
foo.cc:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
foo.cc:19:13: error: ‘cout’ was not declared in this scope
   19 |             cout<<fenzi/j<<" "<<fenmu/j;
      |             ^~~~
foo.cc:19:13: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?

信息

递交者
类型
自测
题目
A6-2 最大公约数专题:分数的加法
语言
C++
递交时间
2024-08-18 15:51:51
评测时间
2024-08-18 15:51:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes