Borderou de evaluare (job #2160674)
Utilizator | Data | 11 martie 2018 13:40:59 | |
---|---|---|---|
Problema | Smooth2 | Status | done |
Runda | Algoritmiada 2018 Runda PreOJI | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:17:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < s.size(); ++i)
^
user.cpp:19:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
viz[s[i]] = 0;
^
user.cpp:21:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < s.size(); ++i)
^
user.cpp:23:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
viz[s[i]]++;
^
user.cpp:24:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
a[i] = viz[s[i]];
^
user.cpp:25:9: error: ‘c’ was not declared in this scope
c[s[i] - 'a'][i] = viz[s[i]];
^
user.cpp:25:36: warning: array subscript has type ‘char’ [-Wchar-subscripts]
c[s[i] - 'a'][i] = viz[s[i]];
^
user.cpp:29:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i < s.size(); ++i)
^
user.cpp:34:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(!ok and i < s.size())
^
user.cpp:27:38: warning: unused variable ‘m’ [-Wunused-variable]
int maxim = 1, minim = 1, k = 0, m;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !