Borderou de evaluare (job #1546788)
Raport evaluator
Compilare:
user.cpp: In function ‘void bellmanFord(int)’:
user.cpp:6:22: warning: integer overflow in expression [-Woverflow]
#define Inf ((1<<31)-1)
^
user.cpp:37:25: note: in expansion of macro ‘Inf’
m.back().assign(n+1,Inf);
^
user.cpp:51:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<v[p].size(); i++)//pentru toti vecinii lui p
^
user.cpp: In function ‘int main()’:
user.cpp:6:22: warning: integer overflow in expression [-Woverflow]
#define Inf ((1<<31)-1)
^
user.cpp:83:22: note: in expansion of macro ‘Inf’
mp[i][j]=Inf;
^
user.cpp: In function ‘int optimize(int, int)’:
user.cpp:6:22: warning: integer overflow in expression [-Woverflow]
#define Inf ((1<<31)-1)
^
user.cpp:93:27: note: in expansion of macro ‘Inf’
if(mp[last][sequence]<Inf)
^
user.cpp:6:22: warning: integer overflow in expression [-Woverflow]
#define Inf ((1<<31)-1)
^
user.cpp:98:17: note: in expansion of macro ‘Inf’
int rez=Inf;
^
user.cpp: In function ‘void citire()’:
user.cpp:19:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n%d",&n,&nrmuchii,&k);
^
user.cpp:22:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&c);
^
user.cpp:28:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&a,&b,&c);
^
user.cpp: In function ‘int main()’:
user.cpp:71:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ubuntzei.in","rt",stdin);
^
user.cpp:72:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ubuntzei.out","wt",stdout);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 452kb | OK | 5 |
2 | 0ms | 452kb | Incorect | 0 |
3 | 0ms | 456kb | Incorect | 0 |
4 | 0ms | 476kb | Incorect | 0 |
5 | 0ms | 476kb | Incorect | 0 |
6 | 0ms | 484kb | Incorect | 0 |
7 | 0ms | 496kb | Incorect | 0 |
8 | 0ms | 540kb | Incorect | 0 |
9 | 0ms | 556kb | Incorect | 0 |
10 | 0ms | 620kb | Incorect | 0 |
11 | 4ms | 732kb | Incorect | 0 |
12 | 4ms | 732kb | Incorect | 0 |
13 | 12ms | 980kb | Incorect | 0 |
14 | 28ms | 1532kb | Incorect | 0 |
15 | 64ms | 2584kb | Incorect | 0 |
16 | 64ms | 2616kb | Incorect | 0 |
17 | 64ms | 2644kb | Incorect | 0 |
18 | 64ms | 2668kb | Incorect | 0 |
19 | 72ms | 2748kb | Incorect | 0 |
20 | 0ms | 452kb | OK | 5 |
Punctaj total | 10 |