Skip to content

Instantly share code, notes, and snippets.

#include <cstdlib>
#include <cstring>
#include <iostream>
using namespace std;
int n;
long long m;
long long** mat;
long long** base;
#include <string>
#include <iostream>
using namespace std;
int main(void) {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
string s;
.PHONY: all clean
CFLAGS = -Wall -Werror -pthread
TARGET = exeFile
SRC = $(wildcard *.c)
OBJ = $(SRC:.c=.o)
all : $(TARGET)
$(TARGET) : $(OBJ)
#include <string>
#include <vector>
#include <iostream>
using namespace std;
int alpha[26];
int main(void) {
ios_base::sync_with_stdio(false);
#include <cmath>
#include <tuple>
#include <queue>
#include <vector>
#include <cstring>
#include <iostream>
using namespace std;
int dist[102][102];
#include "lcd_ili9341.h"
extern SPI_HandleTypeDef hspi5;
void LCD_WriteCommand(uint8_t command)
{
uint8_t dummy;
HAL_GPIO_WritePin(GPIOD, GPIO_PIN_13, GPIO_PIN_RESET); //DCX LOW
HAL_GPIO_WritePin(GPIOC, GPIO_PIN_2, GPIO_PIN_RESET); //CSX LOW
#include <stdio.h>
#define swap(a, b) {int tmp=a; a=b; b=tmp;}
int main(void) {
int a = 3, b = 4;
printf("%d %d", a, b);
swap(a, b);
printf("%d %d", a, b);
return 0;
/* Includes ------------------------------------------------------------------*/
#include "main.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "lcd_ili9341.h"
#include "stm32f429i_discovery_ts.h"
#include <stdio.h>
#include <stdlib.h>
/* USER CODE END Includes */
/* Includes ------------------------------------------------------------------*/
#include "main.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "lcd_ili9341.h"
#include "stm32f429i_discovery_ts.h"
#include <stdio.h>
/* USER CODE END Includes */
#include <tuple>
#include <queue>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main(void) {
ios_base::sync_with_stdio(false);