Submission #1085637

#TimeUsernameProblemLanguageResultExecution timeMemory
1085637DJeniUpCloud Computing (CEOI18_clo)C++17
18 / 100
746 ms1372 KiB

Compilation message (stderr)

clo.cpp: In function 'int main()':
clo.cpp:45:14: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll*' {aka 'int*'} [-Wformat=]
   45 |     scanf("%ld", &m);
      |            ~~^   ~~
      |              |   |
      |              |   ll* {aka int*}
      |              long int*
      |            %d
clo.cpp:48:18: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll*' {aka 'int*'} [-Wformat=]
   48 |         scanf("%ld %ld %ld", &t[i].c, &t[i].f, &t[i].v);
      |                ~~^           ~~~~~~~
      |                  |           |
      |                  long int*   ll* {aka int*}
      |                %d
clo.cpp:48:22: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'll*' {aka 'int*'} [-Wformat=]
   48 |         scanf("%ld %ld %ld", &t[i].c, &t[i].f, &t[i].v);
      |                    ~~^                ~~~~~~~
      |                      |                |
      |                      long int*        ll* {aka int*}
      |                    %d
clo.cpp:48:26: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'll*' {aka 'int*'} [-Wformat=]
   48 |         scanf("%ld %ld %ld", &t[i].c, &t[i].f, &t[i].v);
      |                        ~~^                     ~~~~~~~
      |                          |                     |
      |                          long int*             ll* {aka int*}
      |                        %d
clo.cpp:52:14: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll*' {aka 'int*'} [-Wformat=]
   52 |     scanf("%ld", &n);
      |            ~~^   ~~
      |              |   |
      |              |   ll* {aka int*}
      |              long int*
      |            %d
clo.cpp:55:18: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'll*' {aka 'int*'} [-Wformat=]
   55 |         scanf("%ld %ld %ld", &d[i].c, &d[i].f, &d[i].v);
      |                ~~^           ~~~~~~~
      |                  |           |
      |                  long int*   ll* {aka int*}
      |                %d
clo.cpp:55:22: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'll*' {aka 'int*'} [-Wformat=]
   55 |         scanf("%ld %ld %ld", &d[i].c, &d[i].f, &d[i].v);
      |                    ~~^                ~~~~~~~
      |                      |                |
      |                      long int*        ll* {aka int*}
      |                    %d
clo.cpp:55:26: warning: format '%ld' expects argument of type 'long int*', but argument 4 has type 'll*' {aka 'int*'} [-Wformat=]
   55 |         scanf("%ld %ld %ld", &d[i].c, &d[i].f, &d[i].v);
      |                        ~~^                     ~~~~~~~
      |                          |                     |
      |                          long int*             ll* {aka int*}
      |                        %d
clo.cpp:45:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   45 |     scanf("%ld", &m);
      |     ~~~~~^~~~~~~~~~~
clo.cpp:48:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   48 |         scanf("%ld %ld %ld", &t[i].c, &t[i].f, &t[i].v);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
clo.cpp:52:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   52 |     scanf("%ld", &n);
      |     ~~~~~^~~~~~~~~~~
clo.cpp:55:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
   55 |         scanf("%ld %ld %ld", &d[i].c, &d[i].f, &d[i].v);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...