Borderou de evaluare (job #2825933)
Utilizator | Data | 5 ianuarie 2022 10:46:33 | |
---|---|---|---|
Problema | Tigri | Status | done |
Runda | Algoritmiada 2022 Runda 1 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int numar(int&, int)':
main.cpp:11:35: warning: unused variable 'a' [-Wunused-variable]
11 | long long nr=0, semn=0, ok=0, a=i;
| ^
main.cpp: In function 'int main()':
main.cpp:45:16: warning: converting to non-pointer type 'char' from NULL [-Wconversion-null]
45 | cod[i]=NULL; i++;
| ^~~~
main.cpp:48:22: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
48 | nr=numar(i, m);
| ^
main.cpp:9:16: note: initializing argument 1 of 'int numar(int&, int)'
9 | int numar(int &i, int m)
| ~~~~~^
main.cpp:54:26: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
54 | nr=numar(i, m);
| ^
main.cpp:9:16: note: initializing argument 1 of 'int numar(int&, int)'
9 | int numar(int &i, int m)
| ~~~~~^
main.cpp:56:27: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
56 | nr2=numar(i, m);
| ^
main.cpp:9:16: note: initializing argument 1 of 'int numar(int&, int)'
9 | int numar(int &i, int m)
| ~~~~~^
main.cpp:66:26: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
66 | nr=numar(i, m);
| ^
main.cpp:9:16: note: initializing argument 1 of 'int numar(int&, int)'
9 | int numar(int &i, int m)
| ~~~~~^
main.cpp:68:27: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int'
68 | nr2=numar(i, m);
| ^
main.cpp:9:16: note: initializing argument 1 of 'int numar(int&, int)'
9 | int numar(int &i, int m)
| ~~~~~^
main.cpp:36:25: warning: unused variable 'semn' [-Wunused-variable]
36 | long long nr=0, semn=0, semn2=0, ok=0, nr2=0;
| ^~~~
main.cpp:36:33: warning: unused variable 'semn2' [-Wunused-variable]
36 | long long nr=0, semn=0, semn2=0, ok=0, nr2=0;
| ^~~~~
main.cpp:36:42: warning: unused variable 'ok' [-Wunused-variable]
36 | long long nr=0, semn=0, semn2=0, ok=0, nr2=0;
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !