Borderou de evaluare (job #2716697)
Utilizator | Data | 5 martie 2021 15:39:59 | |
---|---|---|---|
Problema | Caps | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void findch()':
main.cpp:30:16: error: unable to find numeric literal operator 'operator""x'
if(biti(x)%2x)
^~
main.cpp:30:16: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
main.cpp:41:17: warning: array subscript has type 'char' [-Wchar-subscripts]
frec=n1*f[ch]+n2*f[caps(ch)]+upper_bound(poz[s[y]].begin(), poz[s[y]].end(), y)-poz[s[y]].begin();
^
main.cpp:41:32: warning: array subscript has type 'char' [-Wchar-subscripts]
frec=n1*f[ch]+n2*f[caps(ch)]+upper_bound(poz[s[y]].begin(), poz[s[y]].end(), y)-poz[s[y]].begin();
^
main.cpp:41:54: warning: array subscript has type 'char' [-Wchar-subscripts]
frec=n1*f[ch]+n2*f[caps(ch)]+upper_bound(poz[s[y]].begin(), poz[s[y]].end(), y)-poz[s[y]].begin();
^
main.cpp:41:73: warning: array subscript has type 'char' [-Wchar-subscripts]
frec=n1*f[ch]+n2*f[caps(ch)]+upper_bound(poz[s[y]].begin(), poz[s[y]].end(), y)-poz[s[y]].begin();
^
main.cpp:41:93: warning: array subscript has type 'char' [-Wchar-subscripts]
frec=n1*f[ch]+n2*f[caps(ch)]+upper_bound(poz[s[y]].begin(), poz[s[y]].end(), y)-poz[s[y]].begin();
^
main.cpp: In function 'int main()':
main.cpp:48:11: error: 'gets' was not declared in this scope
gets(s);
^
main.cpp:51:15: warning: array subscript has type 'char' [-Wchar-subscripts]
f[s[i]]++;
^
main.cpp:52:17: warning: array subscript has type 'char' [-Wchar-subscripts]
poz[s[i]].push_back(i);
^
main.cpp:45:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("caps.in","r",stdin);
^
main.cpp:46:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("caps.out","w",stdout);
^
main.cpp:47:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld\n",&len,&q);
^
main.cpp:57:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&k);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !