Borderou de evaluare (job #2721711)

Utilizator Botnaru_VictorBotnaru Victor Botnaru_Victor Data 12 martie 2021 09:59:28
Problema Caps Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 32

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:16: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:74:51: warning: format '%i' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] if(isrev==0) printf("%c %i \n",s[nr],total); ^ main.cpp:75:78: warning: format '%i' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] if(isrev==1&&s[nr]<'a') printf("%c %i \n",(char)(s[nr]-'A'+'a'),total)<<' '; ^ main.cpp:75:81: warning: left shift count >= width of type [-Wshift-count-overflow] if(isrev==1&&s[nr]<'a') printf("%c %i \n",(char)(s[nr]-'A'+'a'),total)<<' '; ^~~ main.cpp:75:79: warning: value computed is not used [-Wunused-value] if(isrev==1&&s[nr]<'a') printf("%c %i \n",(char)(s[nr]-'A'+'a'),total)<<' '; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.cpp:76:79: warning: format '%i' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] if(isrev==1&&s[nr]>='a') printf("%c %i \n",(char)(s[nr]-'a'+'A'),total)<<' '; ^ main.cpp:76:82: warning: left shift count >= width of type [-Wshift-count-overflow] if(isrev==1&&s[nr]>='a') printf("%c %i \n",(char)(s[nr]-'a'+'A'),total)<<' '; ^~~ main.cpp:76:80: warning: value computed is not used [-Wunused-value] if(isrev==1&&s[nr]>='a') printf("%c %i \n",(char)(s[nr]-'a'+'A'),total)<<' '; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.cpp:13: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:14: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:16: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:26: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
12ms131kbCorect10
22ms131kbPartial corect2
33ms131kbPartial corect2
44ms131kbPartial corect2
5134ms655kbPartial corect2
6189ms655kbPartial corect2
7247ms786kbPartial corect2
8295ms786kbPartial corect2
910ms131kbPartial corect2
1014ms131kbPartial corect2
1119ms131kbPartial corect2
1230ms131kbPartial corect2
13800ms655kbTime limit exceeded0
14801ms524kbTime limit exceeded0
15802ms393kbTime limit exceeded0
16800ms393kbTime limit exceeded0
17800ms262kbTime limit exceeded0
18800ms393kbTime limit exceeded0
19800ms262kbTime limit exceeded0
Punctaj total32

Ceva nu functioneaza?