Pagini recente » Borderou de evaluare (job #1890379) | Borderou de evaluare (job #2490304) | Borderou de evaluare (job #2601997) | Borderou de evaluare (job #178258) | Borderou de evaluare (job #2721711)
Borderou de evaluare (job #2721711)
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 |
1 | 2ms | 131kb | Corect | 10 |
2 | 2ms | 131kb | Partial corect | 2 |
3 | 3ms | 131kb | Partial corect | 2 |
4 | 4ms | 131kb | Partial corect | 2 |
5 | 134ms | 655kb | Partial corect | 2 |
6 | 189ms | 655kb | Partial corect | 2 |
7 | 247ms | 786kb | Partial corect | 2 |
8 | 295ms | 786kb | Partial corect | 2 |
9 | 10ms | 131kb | Partial corect | 2 |
10 | 14ms | 131kb | Partial corect | 2 |
11 | 19ms | 131kb | Partial corect | 2 |
12 | 30ms | 131kb | Partial corect | 2 |
13 | 800ms | 655kb | Time limit exceeded | 0 |
14 | 801ms | 524kb | Time limit exceeded | 0 |
15 | 802ms | 393kb | Time limit exceeded | 0 |
16 | 800ms | 393kb | Time limit exceeded | 0 |
17 | 800ms | 262kb | Time limit exceeded | 0 |
18 | 800ms | 393kb | Time limit exceeded | 0 |
19 | 800ms | 262kb | Time limit exceeded | 0 |
Punctaj total | 32 |