| Problem | sumint |
|---|---|
| User | H2510152 |
| Submission Time | 2025-05-06 21:31:34 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
sumint.cpp:1:2: error: invalid preprocessing directive #input
1 | #input <iostream>
| ^~~~~
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 | #input <iostream>
sumint.cpp:8:8: error: expected ‘;’ before ‘for’
8 | d += 1
| ^
| ;
9 | for( int i = 0; i < d; i++) {
| ~~~
sumint.cpp:9:18: error: ‘i’ was not declared in this scope
9 | for( int i = 0; i < d; i++) {
| ^