Submisie


Utilizator
Problema
Data
Compilator
Scor
14 Octombrie 2024, 17:48
c++14
E.C.

fail

Mesaj compilare

        main.cpp:13:35: error: stray ‘#’ in program
   13 |         if(v[i] >= x && v[i] <= y)#include <iostream>
      |                                   ^
main.cpp: In function ‘long long int fxy(int, int)’:
main.cpp:13:36: error: ‘include’ was not declared in this scope
   13 |         if(v[i] >= x && v[i] <= y)#include <iostream>
      |                                    ^~~~~~~
main.cpp:13:53: error: expected primary-expression before ‘>’ token
   13 |         if(v[i] >= x && v[i] <= y)#include <iostream>
      |                                                     ^
main.cpp:15:1: error: expected primary-expression before ‘using’
   15 | using namespace std;
      | ^~~~~
main.cpp:20:1: error: a function-definition is not allowed here before ‘{’ token
   20 | {
      | ^
main.cpp:38:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   38 | int main()
      |         ^~
main.cpp:38:9: note: remove parentheses to default-initialize a variable
   38 | int main()
      |         ^~
      |         --
main.cpp:38:9: note: or replace parentheses with braces to value-initialize a variable
main.cpp:39:1: error: a function-definition is not allowed here before ‘{’ token
   39 | {
      | ^
main.cpp:56:9: error: ‘else’ without a previous ‘if’
   56 |         else
      |         ^~~~
main.cpp:17:5: warning: unused variable ‘v’ [-Wunused-variable]
   17 | int v[NMAX];
      |     ^
main.cpp:18:5: warning: unused variable ‘n’ [-Wunused-variable]
   18 | int n, x, y;
      |     ^
main.cpp:18:8: warning: unused variable ‘x’ [-Wunused-variable]
   18 | int n, x, y;
      |        ^
main.cpp:18:11: warning: unused variable ‘y’ [-Wunused-variable]
   18 | int n, x, y;
      |           ^