Pagini recente » Borderou de evaluare (job #88740) | Borderou de evaluare (job #2165798) | Borderou de evaluare (job #2635342) | Borderou de evaluare (job #2378703) | Borderou de evaluare (job #2143298)
Borderou de evaluare (job #2143298)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:16:19: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1000005]’ [-Wformat=]
scanf("%s", &s);
^
user.cpp:22:81: 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:39: 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:41: 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:27: 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:20: 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 | 2536kb | OK | 10 |
| 2 | 0ms | 2544kb | OK | 10 |
| 3 | 0ms | 2544kb | OK | 10 |
| 4 | 0ms | 2544kb | OK | 10 |
| 5 | 0ms | 2540kb | OK | 10 |
| 6 | 4ms | 2684kb | OK | 10 |
| 7 | 4ms | 2652kb | OK | 10 |
| 8 | 28ms | 3916kb | OK | 10 |
| 9 | 28ms | 4180kb | OK | 10 |
| 10 | 28ms | 4020kb | OK | 10 |
| Punctaj total | 100 |