Borderou de evaluare (job #795719)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Tastatura2 (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 17 nov. 2024 15:13:56 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:22:24: error: stray '#' in program
22 | if(n!=copn)#include <fstream>
| ^
main.cpp: In function 'int main()':
main.cpp:22:25: error: 'include' was not declared in this scope
22 | if(n!=copn)#include <fstream>
| ^~~~~~~
main.cpp:22:41: error: expected primary-expression before '>' token
22 | if(n!=copn)#include <fstream>
| ^
main.cpp:23:1: error: expected primary-expression before 'using'
23 | using namespace std;
| ^~~~~
main.cpp:27:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
27 | int main()
| ^~
main.cpp:27:9: note: remove parentheses to default-initialize a variable
27 | int main()
| ^~
| --
main.cpp:27:9: note: or replace parentheses with braces to value-initialize a variable
main.cpp:28:1: error: a function-definition is not allowed here before '{' token
28 | {
| ^
main.cpp:59:2: error: expected '}' at end of input
59 | }
| ^
main.cpp:21:9: note: to match this '{'
21 | {
| ^
main.cpp:59:2: error: expected '}' at end of input
59 | }
| ^
main.cpp:19:5: note: to match this '{'
19 | {
| ^
main.cpp:59:2: error: expected '}' at end of input
59 | }
| ^
main.cpp:9:1: note: to match this '{'
9 | {
| ^
main.cpp:11:9: warning: unused variable 'suma' [-Wunused-variable]
11 | int suma=0, nr=0, k, x;
| ^~~~
main.cpp:11:26: warning: unused variable 'x' [-Wunused-variable]
11 | int suma=0, nr=0, k, x;
| ^