Pagini recente » Monitorul de evaluare | Borderou de evaluare (job #1170205) | Cod sursa (job #64307) | Cod sursa (job #545397) | Borderou de evaluare (job #2578514)
Borderou de evaluare (job #2578514)
Raport evaluator
Compilare:
main.cpp: In function 'void add(int, char*)':
main.cpp:16:11: warning: NULL used in arithmetic [-Wpointer-arith]
if(*s == NULL){
^~~~
main.cpp: In member function 'void usu::insert()':
main.cpp:34:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(v.size() >= k) return ;
~~~~~~~~~^~~~
main.cpp: In member function 'void usu::merge(const usu&)':
main.cpp:40:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(v.size() < sz + aux.v.size() && v.size() <= k) v.push_back(INF);
~~~~~~~~~^~~~
main.cpp:42:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < aux.v.size() ; ++j)
~~^~~~~~~~~~~~~~
main.cpp:46:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 1; j <= aux.v.size() ; ++j){
~~^~~~~~~~~~~~~~~
main.cpp:47:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i + j - 1 >= v.size()) break ;
~~~~~~~~~~^~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:77:31: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("cli.in", "r", stdin);
^
main.cpp:78:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("cli.out", "w", stdout);
^
main.cpp:80:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k);
^
main.cpp:83: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 | 44ms | 24117kb | Incorect | 0 |
| 2 | 52ms | 24117kb | OK | 5 |
| 3 | 52ms | 24117kb | Incorect | 0 |
| 4 | 52ms | 24117kb | Incorect | 0 |
| 5 | 52ms | 24117kb | Incorect | 0 |
| 6 | 52ms | 24117kb | Incorect | 0 |
| 7 | 55ms | 24510kb | Incorect | 0 |
| 8 | 54ms | 24510kb | Incorect | 0 |
| 9 | 54ms | 24510kb | Incorect | 0 |
| 10 | 54ms | 24641kb | Incorect | 0 |
| 11 | 100ms | 29753kb | Incorect | 0 |
| 12 | 104ms | 30146kb | Incorect | 0 |
| 13 | 106ms | 30408kb | Incorect | 0 |
| 14 | 89ms | 30277kb | Incorect | 0 |
| 15 | 104ms | 30146kb | Incorect | 0 |
| 16 | 93ms | 30408kb | Incorect | 0 |
| 17 | 274ms | 56229kb | Incorect | 0 |
| 18 | 286ms | 56623kb | Incorect | 0 |
| 19 | 239ms | 54263kb | Incorect | 0 |
| 20 | 270ms | 54263kb | Incorect | 0 |
| Punctaj total | 5 |