Borderou de evaluare (job #2462346)
Utilizator | Data | 27 septembrie 2019 09:49:06 | |
---|---|---|---|
Problema | PScPld | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:9: error: expected constructor, destructor, or type conversion before '(' token
freopen ("pscpld.in","r",stdin);
^
main.cpp:9:9: error: expected constructor, destructor, or type conversion before '(' token
freopen ("pscpld.out","w",stdout);
^
main.cpp: In function 'int main()':
main.cpp:15:5: error: 'string' was not declared in this scope
string s;
^~~~~~
main.cpp:18:26: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=]
while (scanf("%d", &x));
^
main.cpp:18:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
while (scanf("%d", &x));
^~~~~
main.cpp:19:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while'
{
^
main.cpp:20:9: error: 's' was not declared in this scope
s += "#";
^
main.cpp:25:5: error: 's' was not declared in this scope
s = "!" + s + "#";
^
main.cpp:27:25: error: 'assert' was not declared in this scope
assert(n < 2 * maxim);
^
main.cpp:52:21: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
printf("%d", ans);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !