Pagini recente » Borderou de evaluare (job #1396351) | Borderou de evaluare (job #298984) | Borderou de evaluare (job #1208084) | Borderou de evaluare (job #2873355) | Borderou de evaluare (job #1320845)
Borderou de evaluare (job #1320845)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:13:26: warning: format ‘%i’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=]
scanf("%i %i", &N, &M);
^
user.cpp:13:26: warning: format ‘%i’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=]
user.cpp:14:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int i = 1; i <= N; ++i )
^
user.cpp:16:26: warning: format ‘%i’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=]
scanf("%i",&pruna);
^
user.cpp:19:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for ( int i = 1; i <= M-1; ++i )
^
user.cpp:30:33: warning: format ‘%i’ expects argument of type ‘int’, but argument 2 has type ‘long long unsigned int’ [-Wformat=]
printf("%i",S.begin()->first);
^
user.cpp:11:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("numar2.in","r",stdin);
^
user.cpp:12:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("numar2.out","w",stdout);
^
user.cpp:13:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i %i", &N, &M);
^
user.cpp:16:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i",&pruna);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 272kb | OK | 10 |
2 | 0ms | 276kb | OK | 10 |
3 | 0ms | 268kb | OK | 10 |
4 | 0ms | 272kb | OK | 10 |
5 | 0ms | 280kb | OK | 10 |
6 | 4ms | 272kb | OK | 10 |
7 | 4ms | 280kb | OK | 10 |
8 | 4ms | 280kb | OK | 10 |
9 | 4ms | 276kb | OK | 10 |
10 | 4ms | 276kb | OK | 10 |
Punctaj total | 100 |