记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin>>a;
      |   ^~~
/in/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;
/in/foo.cc:9:7: error: 'i' was not declared in this scope
    9 |   for(i=0;n>0;n++){
      |       ^
/in/foo.cc:9:11: error: 'n' was not declared in this scope
    9 |   for(i=0;n>0;n++){
      |           ^
/in/foo.cc:15:17: error: 'cout' was not declared in this scope
   15 |                 cout<<r[j]}
      |                 ^~~~
/in/foo.cc:15:17: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
/in/foo.cc:15:23: error: 'r' was not declared in this scope
   15 |                 cout<<r[j]}
      |                       ^
/in/foo.cc:5:7: warning: unused variable 'x' [-Wunused-variable]
    5 |   int x;
      |       ^

信息

递交者
类型
递交
题目
P1080 xf1-3进制转换1
语言
C++
递交时间
2025-09-27 16:23:49
评测时间
2025-10-03 01:40:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes