Pagini recente » Borderou de evaluare (job #2227674) | Borderou de evaluare (job #1414217) | Borderou de evaluare (job #1424121) | Borderou de evaluare (job #2035159) | Borderou de evaluare (job #2682113)
Borderou de evaluare (job #2682113)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:12:18: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[1000001]' [-Wformat=]
scanf("%s",&s);
^
main.cpp:13:18: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[1000001]' [-Wformat=]
scanf("%s",&s);
^
main.cpp:16:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(d.size()+n-i-1>=m&&d.front()<s[i]&&!d.empty()) d.pop_front();
~~~~~~~~~~~~~~^~~
main.cpp:17:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(d.size()<m)
~~~~~~~~^~
main.cpp:9:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("trompeta.in","r",stdin);
^
main.cpp:10:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("trompeta.out","w",stdout);
^
main.cpp:11:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
^
main.cpp:12:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&s);
^
main.cpp:13:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&s);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 131kb | OK | 10 |
2 | 3ms | 131kb | OK | 10 |
3 | 3ms | 131kb | OK | 10 |
4 | 3ms | 131kb | OK | 10 |
5 | 3ms | 131kb | OK | 10 |
6 | 6ms | 393kb | OK | 10 |
7 | 7ms | 262kb | OK | 10 |
8 | 37ms | 2883kb | OK | 10 |
9 | 31ms | 4063kb | OK | 10 |
10 | 36ms | 3014kb | OK | 10 |
Punctaj total | 100 |