记录详情

Compile Error

/in/foo.cc:8:4: error: stray '#' in program
  c #include <iostream>
    ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:5:2: error: 'cin' was not declared in this scope
  cin >> n;
  ^~~
/in/foo.cc:8:5: error: expected ';' before 'include'
  c #include <iostream>
     ^~~~~~~
/in/foo.cc:10:20: warning: statement has no effect [-Wunused-value]
 using namespace std;
                    ^
/in/foo.cc:12:1: error: expected primary-expression before '=' token
 = n % 10;
 ^
/in/foo.cc:15:3: error: 'cout' was not declared in this scope
   cout << "Yes";
   ^~~~
/in/foo.cc:19:3: error: 'cout' was not declared in this scope
   cout << "NO";
   ^~~~

信息

递交者
类型
递交
题目
p1018 判断水仙花数(参考p69页实例2)
语言
C++
递交时间
2021-12-03 21:50:12
评测时间
2021-12-03 21:50:12
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes