Compile Error
foo.c:1:10: fatal error: iostream: No such file or directory 1 | #include <iostream> | ^~~~~~~~~~ compilation terminated.
Code
#include <iostream>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL); cout.tie(NULL);
int count = 0;
long long n;
cin >> n;
for (long long i = 1; i * i <= n; ++i) {
if (n % i == 0) {
count++;
if (i != n / i) {
count++;
}
}
}
cout << count;
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1037 Generous CR
- Contest
- Brain booster #2
- Language
- C99 (GCC 13.2.0)
- Submit At
- 2024-03-06 14:01:23
- Judged At
- 2024-11-11 03:42:07
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes