Pagini recente » Cod sursa (job #1248685) | Cod sursa (job #815561) | Cod sursa (job #3358193) | Cod sursa (job #2130995) | Borderou de evaluare (job #1599961)
Borderou de evaluare (job #1599961)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf("%d %ld %ld", &m, &n, &p);
^
user.cpp:19:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=]
scanf("%d ", &a[i][0]);
^
user.cpp:24:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘char*’ [-Wformat=]
scanf("%d ", &a[i][j]);
^
user.cpp:38:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=]
printf("%d\n%d", nr, max);
^
user.cpp:38:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
user.cpp:9:31: warning: variable ‘ok2’ set but not used [-Wunused-but-set-variable]
long int m, i, nr=0, ok1, ok2, maxi,max;
^
user.cpp:7:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("livada.in","r",stdin);
^
user.cpp:8:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("livada.out","w",stdout);
^
user.cpp:12:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %ld %ld", &m, &n, &p);
^
user.cpp:19:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &a[i][0]);
^
user.cpp:24:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &a[i][j]);
^
user.cpp:36:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("\n");
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 344kb | Prima linie corecta! | 4 |
| 2 | 0ms | 344kb | Prima linie corecta! | 4 |
| 3 | 28ms | 1176kb | Raspuns gresit! | 0 |
| 4 | 64ms | 1264kb | Raspuns gresit! | 0 |
| 5 | 140ms | 1452kb | Raspuns gresit! | 0 |
| 6 | 232ms | 1232kb | Raspuns gresit! | 0 |
| 7 | 232ms | 1232kb | Raspuns gresit! | 0 |
| 8 | 224ms | 472kb | Raspuns gresit! | 0 |
| 9 | 232ms | 1660kb | Raspuns gresit! | 0 |
| 10 | 228ms | 944kb | Prima linie corecta! | 4 |
| Punctaj total | 12 |