Problem | swords |
---|---|
User | bob |
Submission Time | 2024-02-16 13:54:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
swords.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include iostream>
| ^~~~~~~~
swords.cpp: In function ‘int main()’:
swords.cpp:11:2: error: ‘cin’ was not declared in this scope
11 | cin >> n;
| ^~~
swords.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #include iostream>
swords.cpp:33:3: error: ‘cout’ was not declared in this scope
33 | cout << 1;
| ^~~~
swords.cpp:33:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
swords.cpp:44:3: error: ‘cout’ was not declared in this scope
44 | cout << total;
| ^~~~
swords.cpp:44:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?