Problem sumint
User phineconel
Submission Time 2024-07-08 13:57:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp:2:7: error: expected nested-name-specifier before ‘namespcae’
2 | using namespcae std;
| ^~~~~~~~~
sumint.cpp: In function ‘int main()’:
sumint.cpp:4:25: error: ‘i’ was not declared in this scope
4 | for (int d=0;d<100000, i++){
| ^
sumint.cpp:4:28: error: expected ‘;’ before ‘)’ token
4 | for (int d=0;d<100000, i++){
| ^
| ;
sumint.cpp:5:3: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
5 | cout<<"d";
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from sumint.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
sumint.cpp:7:1: error: expected ‘}’ at end of input<