Pagini recente » Cod sursa (job #2399399) | Cod sursa (job #2998789) | Borderou de evaluare (job #2600394) | Cod sursa (job #195062) | Borderou de evaluare (job #2689732)
Borderou de evaluare (job #2689732)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:31:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (current < w) putchar(s[i]);
~~~~~~~~^~~
main.cpp:4:50: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
#define FL(nm) do { freopen(nm ".in", "r", stdin); freopen(nm ".out", "w", stdout); } while (false)
^
main.cpp:13:5: note: in expansion of macro 'FL'
FL("texttrim");
^~
main.cpp:4:83: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
#define FL(nm) do { freopen(nm ".in", "r", stdin); freopen(nm ".out", "w", stdout); } while (false)
^
main.cpp:13:5: note: in expansion of macro 'FL'
FL("texttrim");
^~
main.cpp:17:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &spw);
^
main.cpp:19:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", width + i);
^
main.cpp:21:25: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(s, mxN, stdin);
^
main.cpp:25:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int w; scanf("%d", &w); w-=2;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 3ms | 131kb | OK | 10 | 0 |
2 | 3ms | 131kb | Incorect | 0 |
3 | 3ms | 131kb | Incorect | 0 |
4 | 3ms | 131kb | Incorect | 0 |
5 | 3ms | 131kb | OK | 10 |
6 | 3ms | 393kb | OK | 10 |
7 | 7ms | 1179kb | OK | 10 |
8 | 9ms | 1179kb | OK | 10 |
9 | 7ms | 1179kb | OK | 10 |
10 | 7ms | 1179kb | OK | 10 |
Punctaj total | 0 |