Problem | sumint |
---|---|
User | EuniceLoh |
Submission Time | 2024-11-07 10:39:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sumint.cpp: In function ‘int main()’:
sumint.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin >> d;
| ^~~
sumint.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
sumint.cpp:8:24: error: expected ‘;’ before ‘)’ token
8 | for (int i=0; i<d, i++) {
| ^
| ;
sumint.cpp:14:2: error: ‘cout’ was not declared in this scope
14 | cout << totalmeows << endl;
| ^~~~
sumint.cpp:14:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
sumint.cpp:14:24: error: ‘endl’ was not declared in this scope
14 | cout << totalmeows << endl;
| ^~~~
sumint.cpp:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’