Borderou de evaluare (job #2242215)

Utilizator vladisimovlad coneschi vladisimo Data 18 septembrie 2018 09:14:09
Problema Clasic Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 100

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
12172ms800kbOK100
Punctaj total100

Ceva nu functioneaza?