Pagini recente » Borderou de evaluare (job #884434) | Borderou de evaluare (job #390258) | Borderou de evaluare (job #324352) | Borderou de evaluare (job #588387) | Borderou de evaluare (job #2242215)
Borderou de evaluare (job #2242215)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:2:281: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
int main() {freopen("clasic.in", "r", stdin);freopen("clasic.out", "w", stdout);int t;scanf("%d", &t);for (int i = 1; i <= t; i++) { int n;scanf("%d", &n);long long sum;scanf("%lld", &sum);for (int j = 2; j <= n; j++) {long long x;scanf("%lld", &x);sum ^= x;}printf("%d\n", sum);}return 0;}
^
user.cpp:2:45: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
int main() {freopen("clasic.in", "r", stdin);freopen("clasic.out", "w", stdout);int t;scanf("%d", &t);for (int i = 1; i <= t; i++) { int n;scanf("%d", &n);long long sum;scanf("%lld", &sum);for (int j = 2; j <= n; j++) {long long x;scanf("%lld", &x);sum ^= x;}printf("%d\n", sum);}return 0;}
^
user.cpp:2:80: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
int main() {freopen("clasic.in", "r", stdin);freopen("clasic.out", "w", stdout);int t;scanf("%d", &t);for (int i = 1; i <= t; i++) { int n;scanf("%d", &n);long long sum;scanf("%lld", &sum);for (int j = 2; j <= n; j++) {long long x;scanf("%lld", &x);sum ^= x;}printf("%d\n", sum);}return 0;}
^
user.cpp:2:102: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int main() {freopen("clasic.in", "r", stdin);freopen("clasic.out", "w", stdout);int t;scanf("%d", &t);for (int i = 1; i <= t; i++) { int n;scanf("%d", &n);long long sum;scanf("%lld", &sum);for (int j = 2; j <= n; j++) {long long x;scanf("%lld", &x);sum ^= x;}printf("%d\n", sum);}return 0;}
^
user.cpp:2:158: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int main() {freopen("clasic.in", "r", stdin);freopen("clasic.out", "w", stdout);int t;scanf("%d", &t);for (int i = 1; i <= t; i++) { int n;scanf("%d", &n);long long sum;scanf("%lld", &sum);for (int j = 2; j <= n; j++) {long long x;scanf("%lld", &x);sum ^= x;}printf("%d\n", sum);}return 0;}
^
user.cpp:2:192: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int main() {freopen("clasic.in", "r", stdin);freopen("clasic.out", "w", stdout);int t;scanf("%d", &t);for (int i = 1; i <= t; i++) { int n;scanf("%d", &n);long long sum;scanf("%lld", &sum);for (int j = 2; j <= n; j++) {long long x;scanf("%lld", &x);sum ^= x;}printf("%d\n", sum);}return 0;}
^
user.cpp:2:252: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
int main() {freopen("clasic.in", "r", stdin);freopen("clasic.out", "w", stdout);int t;scanf("%d", &t);for (int i = 1; i <= t; i++) { int n;scanf("%d", &n);long long sum;scanf("%lld", &sum);for (int j = 2; j <= n; j++) {long long x;scanf("%lld", &x);sum ^= x;}printf("%d\n", sum);}return 0;}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2172ms | 800kb | OK | 100 |
Punctaj total | 100 |