fork download
  1. #include<iostream>
  2.  
  3. #include<string>
  4. #include<array>
  5.  
  6. #include<vector>
  7. #include<set>
  8. #include<list>
  9. #include<utility>
  10.  
  11. #include<algorithm>
  12.  
  13. #include<cctype>
  14. #include<climits>
  15. #include<ctime>
  16. #include<math.h>
  17. #include<cmath>
  18.  
  19. #define FOR(i,a,b) for(int (i) = (a); (i) < (b); ++(i))
  20. #define ROF(i,a,b) for(int (i) = (a); (i) > (b); --(i))
  21. #define MACRO(A,B,C) A/4-3*B+C
  22. struct Lista {
  23. int last;
  24. char elements[10][10];
  25. };
  26. int main()
  27. {
  28. Lista lista;
  29. FOR(i, 0, 10){
  30. FOR(j, 0, 10){
  31. lista.elements[i][j] = i + j;
  32. }
  33. }
  34. char* pokazivac = LiRetrive(lista, 15);
  35. printf("%c", *pokazivac);
  36. }
  37. char* LiRetrive(Lista L, int position)
  38. {
  39. return L.elements[position];
  40. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:34:39: error: 'LiRetrive' was not declared in this scope
  char* pokazivac = LiRetrive(lista, 15);
                                       ^
prog.cpp: In function 'char* LiRetrive(Lista, int)':
prog.cpp:37:23: warning: address of local variable 'L' returned [-Wreturn-local-addr]
 char* LiRetrive(Lista L, int position)
                       ^
stdout
Standard output is empty