Borderou de evaluare (job #1870855)
Utilizator | Data | 6 februarie 2017 23:02:16 | |
---|---|---|---|
Problema | Suma | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:28: error: conflicting declaration ‘typedef long long unsigned int ulong’
typedef long long unsigned ulong;
^
In file included from /usr/include/stdlib.h:320:0,
from /usr/include/c++/4.8/cstdlib:72,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:47,
from user.cpp:1:
/usr/include/i386-linux-gnu/sys/types.h:151:27: error: ‘ulong’ has a previous declaration as ‘typedef long unsigned int ulong’
typedef unsigned long int ulong;
^
user.cpp: In function ‘int main()’:
user.cpp:51:29: warning: format ‘%llu’ expects argument of type ‘long long unsigned int*’, but argument 2 has type ‘ulong* {aka long unsigned int*}’ [-Wformat=]
scanf("%llu%llu", &N, &P);
^
user.cpp:51:29: warning: format ‘%llu’ expects argument of type ‘long long unsigned int*’, but argument 3 has type ‘ulong* {aka long unsigned int*}’ [-Wformat=]
user.cpp:54:20: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘ulong {aka long unsigned int}’ [-Wformat=]
printf("%llu",S);
^
user.cpp:49:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("suma.in", "r", stdin);
^
user.cpp:50:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("suma.out", "w", stdout);
^
user.cpp:51:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%llu%llu", &N, &P);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !