Pagini recente » Borderou de evaluare (job #214823) | Borderou de evaluare (job #1771591) | Borderou de evaluare (job #2195847) | Borderou de evaluare (job #1030013) | Borderou de evaluare (job #2041975)
Borderou de evaluare (job #2041975)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:16:16: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1000005]’ [-Wformat=]
scanf("%s", &s);
^
user.cpp:24:77: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(!st.empty() and s[i] - '0' > st.top() - '0' and N - M + st.size() > i) {
^
user.cpp:9:36: 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);
^
user.cpp:10:38: 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);
^
user.cpp:13:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &N, &M);
^
user.cpp:16:17: 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 | 0ms | 1420kb | OK | 10 |
2 | 0ms | 1412kb | OK | 10 |
3 | 0ms | 1412kb | OK | 10 |
4 | 0ms | 1416kb | OK | 10 |
5 | 0ms | 1412kb | OK | 10 |
6 | 4ms | 1564kb | OK | 10 |
7 | 4ms | 1536kb | OK | 10 |
8 | 28ms | 2936kb | OK | 10 |
9 | 24ms | 3328kb | OK | 10 |
10 | 24ms | 2996kb | OK | 10 |
Punctaj total | 100 |