| Problem | sumint |
|---|---|
| User | PerihelionfromAphelion |
| Submission Time | 2026-02-14 09:42:11 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sumint.cpp:1:2: error: invalid preprocessing directive #includ; did you mean #include?
1 | #includ <bits/stdc++.h>
| ^~~~~~
| include
sumint.cpp: In function ‘int main()’:
sumint.cpp:7:2: error: ‘cin’ was not declared in this scope
7 | cin >> d;
| ^~~
sumint.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #includ <bits/stdc++.h>
sumint.cpp:8:19: error: ‘n’ was not declared in this scope
8 | for (i = 1; i <= n; i++) {
| ^
sumint.cpp:12:2: error: ‘cout’ was not declared in this scope
12 | cout << cnt;
| ^~~~
sumint.cpp:12:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?