Borderou de evaluare (job #1671965)
Utilizator | Data | 2 aprilie 2016 11:51:08 | |
---|---|---|---|
Problema | Tromino | Status | done |
Runda | Urmasii lui Moisil 2016, Clasa a 9-a | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:11: error: ‘long long int y1’ redeclared as different kind of symbol
ll N, x1, y1, x2, y2, Q;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420,
from /usr/include/c++/4.8/cstdio:41,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:110:71: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 4 has type ‘double (*)(double)throw ()’ [-Wformat=]
fscanf( input_file, "%lld %lld %lld %lld", &x1, &y1, &x2, &y2 ); x1 ++; y1 ++; x2 ++; y2 ++;
^
user.cpp:110:84: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
fscanf( input_file, "%lld %lld %lld %lld", &x1, &y1, &x2, &y2 ); x1 ++; y1 ++; x2 ++; y2 ++;
^
user.cpp:110:84: error: lvalue required as increment operand
user.cpp:111:75: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘long long int’ [-fpermissive]
fprintf( output_file, "%lld\n", query( 1, 1, N, N, x1, y1, x2, y2 ) );
^
user.cpp:16:4: error: initializing argument 6 of ‘long long int query(long long int, long long int, long long int, long long int, long long int, long long int, long long int, long long int)’ [-fpermissive]
ll query( ll x1, ll y1, ll x2, ll y2, ll x3, ll y3, ll x4, ll y4 ) {
^
user.cpp:107:46: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf( input_file, "%lld %lld", &N, &Q ); N = (1LL << N);
^
user.cpp:110:72: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf( input_file, "%lld %lld %lld %lld", &x1, &y1, &x2, &y2 ); x1 ++; y1 ++; x2 ++; y2 ++;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !