Problem scicom
User ChristianXander
Submission Time 2026-06-24 14:40:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

scicom.cpp: In function ‘int main()’:
scicom.cpp:4:5: error: ‘string’ was not declared in this scope
4 | string name, medal;
| ^~~~~~
scicom.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
+++ |+#include <string>
1 | using namespace std;
scicom.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> name >> medal;
| ^~~
scicom.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
scicom.cpp:5:12: error: ‘name’ was not declared in this scope
5 | cin >> name >> medal;
| ^~~~
scicom.cpp:5:20: error: ‘medal’ was not declared in this scope
5 | cin >> name >> medal;
| ^~~~~
scicom.cpp:7:5: error: ‘cout’