Problem | area |
---|---|
User | ToiletBrIcker |
Submission Time | 2024-06-19 09:22:10 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
area.cpp: In function ‘int main()’:
area.cpp:2:14: error: ‘cin’ is not a member of ‘std’
2 | int N; std::cin >> N;
| ^~~
area.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int main(){
area.cpp:3:23: error: expected ‘;’ before ‘while’
3 | long total; total = 0
| ^
| ;
4 | while (N--){
| ~~~~~
area.cpp:9:7: error: ‘cout’ is not a member of ‘std’
9 | std::cout << total
| ^~~~
area.cpp:9:7: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?