Problem | contestcalc |
---|---|
User | SMJ360 |
Submission Time | 2024-06-19 15:19:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
contestcalc.cpp: In function ‘int main()’:
contestcalc.cpp:6:14: error: invalid conversion from ‘const char*’ to ‘char’ [-fpermissive]
6 | char name = "";
| ^~
| |
| const char*
contestcalc.cpp:7:2: error: ‘map’ was not declared in this scope
7 | map<char, int> list, chosen;
| ^~~
contestcalc.cpp:2:1: note: ‘std::map’ is defined in header ‘<map>’; did you forget to ‘#include <map>’?
1 | #include <iostream>
+++ |+#include <map>
2 | using namespace std;
contestcalc.cpp:7:6: error: expected primary-expression before ‘char’
7 | map<char, int> list, chosen;
| ^~~~
contestcalc.cpp:9:29: error: expected ‘;’ before ‘)’ token
9 | for (int i = 0; i < N, i++) {
| ^
| ;
contestcalc.cpp:12:3: error: ‘list’ was not declared in this