Borderou de evaluare (job #1143932)
Utilizator | Data | 16 martie 2014 13:05:01 | |
---|---|---|---|
Problema | Minerale | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:1: error: ‘unorered_map’ does not name a type
unorered_map<string,int> ans;
^
user.cpp: In function ‘void read()’:
user.cpp:19:32: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[3]’ [-Wformat=]
scanf("%c %s\n",&c,&aux);
^
user.cpp:21:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
transf[c].push_back(s);
^
user.cpp: In function ‘void transforma(std::string, int)’:
user.cpp:27:9: error: ‘ans’ was not declared in this scope
if(!ans[s])
^
user.cpp:30:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < s.size(); ++i)
^
user.cpp:32:39: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(int j = 0; j < transf[s[i]].size(); ++j)
^
user.cpp:32:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < transf[s[i]].size(); ++j)
^
user.cpp:37:31: warning: array subscript has type ‘char’ [-Wchar-subscripts]
aux += transf[s[i]][j];
^
user.cpp:38:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = i+1; k < s.size(); ++k)
^
user.cpp: In function ‘void solve()’:
user.cpp:62:24: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[105]’ [-Wformat=]
scanf("%s",&cuv);
^
user.cpp:63:23: error: ‘ans’ was not declared in this scope
printf("%d\n",ans[cuv]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !