Pagini recente » Cod sursa (job #1056884) | Borderou de evaluare (job #1360954) | Cod sursa (job #1362495) | Cod sursa (job #385339) | Borderou de evaluare (job #2041977)
Borderou de evaluare (job #2041977)
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:22: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 | 1408kb | OK | 10 |
| 2 | 0ms | 1412kb | OK | 10 |
| 3 | 0ms | 1412kb | OK | 10 |
| 4 | 0ms | 1408kb | OK | 10 |
| 5 | 0ms | 1412kb | OK | 10 |
| 6 | 4ms | 1560kb | OK | 10 |
| 7 | 4ms | 1532kb | OK | 10 |
| 8 | 24ms | 2928kb | OK | 10 |
| 9 | 24ms | 3316kb | OK | 10 |
| 10 | 24ms | 2984kb | OK | 10 |
| Punctaj total | 100 |