Borderou de evaluare (job #2721586)

Utilizator Botnaru_VictorBotnaru Victor Botnaru_Victor Data 11 martie 2021 23:29:13
Problema Caps Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:15:30: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'char (*)[100011]' [-Wformat=] scanf("%i %i %s",&k,&q,&s); ^ main.cpp:30:68: warning: left shift count >= width of type [-Wshift-count-overflow] if(rev==1&&s[nr]<'a') printf("%c ",(char)(s[nr]-'A'+'a'))<<' '; ^~~ main.cpp:30:66: warning: value computed is not used [-Wunused-value] if(rev==1&&s[nr]<'a') printf("%c ",(char)(s[nr]-'A'+'a'))<<' '; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.cpp:31:69: warning: left shift count >= width of type [-Wshift-count-overflow] if(rev==1&&s[nr]>='a') printf("%c ",(char)(s[nr]-'a'+'a'))<<' '; ^~~ main.cpp:31:67: warning: value computed is not used [-Wunused-value] if(rev==1&&s[nr]>='a') printf("%c ",(char)(s[nr]-'a'+'a'))<<' '; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.cpp:12: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:13: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:15:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%i %i %s",&k,&q,&s); ^ main.cpp:18:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%lli",&nr); nr--; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbIncorect0
22ms131kbIncorect0
33ms131kbIncorect0
43ms131kbIncorect0
540ms262kbIncorect0
641ms262kbIncorect0
745ms262kbIncorect0
850ms393kbIncorect0
98ms131kbIncorect0
108ms131kbIncorect0
1112ms131kbIncorect0
1218ms131kbIncorect0
13142ms393kbIncorect0
14166ms262kbIncorect0
15181ms393kbIncorect0
16297ms393kbIncorect0
17412ms393kbIncorect0
18583ms393kbIncorect0
19595ms393kbIncorect0
Punctaj total0

Ceva nu functioneaza?