Borderou de evaluare (job #1406455)
Utilizator | Data | 29 martie 2015 17:00:48 | |
---|---|---|---|
Problema | Secv10 | Status | done |
Runda | ONIS 2015, Runda 2 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void solve()’:
user.cpp:54:35: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[10009]’ [-Wformat=]
scanf("%s %s %s", &s, &st, &dr);
^
user.cpp:54:35: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[10009]’ [-Wformat=]
user.cpp:54:35: warning: format ‘%s’ expects argument of type ‘char*’, but argument 4 has type ‘char (*)[10009]’ [-Wformat=]
user.cpp:93:5: error: ‘prlong’ was not declared in this scope
prlong longf("%i\n", sum);
^
user.cpp:93:12: error: expected ‘;’ before ‘longf’
prlong longf("%i\n", sum);
^
user.cpp: In function ‘int main()’:
user.cpp:110:19: warning: format ‘%i’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%i", &t);
^
user.cpp: In function ‘void solve()’:
user.cpp:54:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s %s %s", &s, &st, &dr);
^
user.cpp: In function ‘int main()’:
user.cpp:107:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secv10.in", "r", stdin);
^
user.cpp:108:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secv10.out", "w", stdout);
^
user.cpp:110:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i", &t);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !